checkin from browser
authorClaus Gittinger <cg@exept.de>
Wed, 28 Mar 2001 19:45:17 +0200
changeset 2349 0f6c87cbbb9e
parent 2348 630ad2e7092e
child 2350 c09d3dd534e3
checkin from browser
EditField.st
--- a/EditField.st	Thu Mar 22 13:42:36 2001 +0100
+++ b/EditField.st	Wed Mar 28 19:45:17 2001 +0200
@@ -1645,15 +1645,17 @@
 hasKeyboardFocus:aBoolean
     "the view got/lost the keyboard focus"
 
-    aBoolean ifFalse:[
-        enabled ifTrue:[
-            acceptOnLostFocus ifTrue:[
-                model notNil ifTrue:[
-                    model value = self argForChangeMessage ifTrue:[
-                        ^ self
-                    ]
+    hasKeyboardFocus ~~ aBoolean ifTrue:[
+        aBoolean ifFalse:[
+            enabled ifTrue:[
+                acceptOnLostFocus ifTrue:[
+                    model notNil ifTrue:[
+                        model value = self argForChangeMessage ifTrue:[
+                            ^ self
+                        ]
+                    ].
+                    self accept.
                 ].
-                self accept.
             ].
         ].
     ].
@@ -2077,5 +2079,5 @@
 !EditField class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.150 2000-10-09 10:00:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.151 2001-03-28 17:45:17 cg Exp $'
 ! !