The Trunk: Morphic-mt.1227.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.1227.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1227.mcz

==================== Summary ====================

Name: Morphic-mt.1227
Author: mt
Time: 3 August 2016, 2:52:07.812041 pm
UUID: 428a55a4-6204-174c-b4b0-14b8dc1a297d
Ancestors: Morphic-mt.1226

Fixes a small regression where the text cursor did not show up on a simple mouse down when it was invisible due to its blinking animation.

=============== Diff against Morphic-mt.1226 ===============

Item was changed:
  ----- Method: TextMorph>>mouseDown: (in category 'event handling') -----
  mouseDown: evt
  "Make this TextMorph be the keyboard input focus, if it isn't  
  already, and repond to the text selection gesture."
 
  evt yellowButtonPressed ifTrue: [
  "First check for option (menu) click"
  ^ self yellowButtonActivity: evt shiftPressed].
 
+ "Show the caret immediately on mouse down to give user feedback."
+ self resetBlinkCursor.
+
  "If focus does not follow the mouse cursor and we click below everything, just grab the focus to not destroy the selection."
  ((self hasKeyboardFocus: evt hand) not and: [(self bounds containsPoint: evt position) not])
  ifTrue: [evt hand newKeyboardFocus: self]
  ifFalse: [
  evt hand newKeyboardFocus: self.
  self
  handleInteraction: [editor mouseDown: evt]
  fromEvent: evt].!