changed: #keyPress:x:y:
authorClaus Gittinger <cg@exept.de>
Wed, 07 Mar 2012 11:56:37 +0100
changeset 4393 fc4469318c59
parent 4392 e1159af210b2
child 4394 c3cabdc1f4cc
changed: #keyPress:x:y: Return is no longer taken as a button-action activator (only space); return prevented modal dialogs to fire on return, if the focus was on a toggle/button. This was counterintuitive. (dialog with checkboxes could not be closed with return)
ButtonController.st
--- a/ButtonController.st	Tue Mar 06 18:24:03 2012 +0100
+++ b/ButtonController.st	Wed Mar 07 11:56:37 2012 +0100
@@ -557,7 +557,7 @@
     <resource: #keyboard (#Return)>
 
     view hasExplicitFocus ifTrue:[
-        ((key == Character space) or:[key == #Return]) ifTrue:[
+        ((key == Character space) "or:[key == #Return]") ifTrue:[
             "just simulate a buttonPress/release here."
             self buttonPress:1 x:0 y:0.
             self buttonRelease:1 x:0 y:0.
@@ -566,7 +566,7 @@
     ].
     view keyPress:key x:x y:y
 
-    "Modified: 26.2.1997 / 00:50:25 / cg"
+    "Modified: / 07-03-2012 / 11:47:40 / cg"
 !
 
 performAction
@@ -788,5 +788,5 @@
 !ButtonController class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/ButtonController.st,v 1.74 2009-09-15 19:01:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/ButtonController.st,v 1.75 2012-03-07 10:56:37 cg Exp $'
 ! !