[squeak-dev] The Trunk: Morphic-nice.567.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Aug 5 18:01:13 UTC 2011
Nicolas Cellier uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-nice.567.mcz
==================== Summary ====================
Name: Morphic-nice.567
Author: nice
Time: 5 August 2011, 7:59:50.352 pm
UUID: ba2e1cae-2027-40a3-9f46-6d688aac5efb
Ancestors: Morphic-nice.566
1) In some occasions, the SearchBarMorph goes mad when handlingInteration thru a nil editor. Protect by using self editor.
2) Remove #installEditor that has no senders for more than 10 years now.
=============== Diff against Morphic-nice.566 ===============
Item was removed:
- ----- Method: TextMorph>>installEditor (in category 'private') -----
- installEditor
-
-
- self flag: #bob. "I don't see any senders (16 Feb 2001)"
-
-
- "Install an editor for my paragraph. This constitutes 'hasFocus'."
- editor ifNotNil: [^ editor].
- ^ self installEditorToReplace: nil!
Item was changed:
----- Method: TextMorph>>keyStroke: (in category 'event handling') -----
keyStroke: evt
"Handle a keystroke event."
self resetBlinkCursor. "don't blink during type-in"
ToolSet
codeCompletionAround: [
evt keyValue = 13 ifTrue: [ "CR - check for special action"
self crAction ifNotNil: [ :action |
"Note: Code below assumes that this was some
input field reacting on CR. Break the keyboard
focus so that the receiver can be safely deleted."
evt hand newKeyboardFocus: nil.
^action valueWithEnoughArguments: { evt } ] ].
+ self handleInteraction: [ self editor keyStroke: evt ] fromEvent: evt.
- self handleInteraction: [ editor keyStroke: evt ] fromEvent: evt.
"self updateFromParagraph."
super keyStroke: evt "sends to keyStroke event handler, if any" ]
textMorph: self
keyStroke: evt!
More information about the Squeak-dev
mailing list
|