class: View
authorClaus Gittinger <cg@exept.de>
Thu, 03 Apr 2014 16:34:55 +0200
changeset 6367 f9b12da7f4b7
parent 6366 b8aa19ba1519
child 6368 0482fa46f211
class: View changed: #assignKeyboardFocusToFirstInputField eliminated the need to know what the platformname of the windows device is
View.st
--- a/View.st	Thu Apr 03 16:34:01 2014 +0200
+++ b/View.st	Thu Apr 03 16:34:55 2014 +0200
@@ -759,12 +759,12 @@
     ].
     consumer := (consumer ? firstConsumer ? firstCursorConsumer).
     consumer notNil ifTrue:[
-        self graphicsDevice platformName = #WIN32 ifTrue:[
+        self graphicsDevice isWindowsPlatform ifTrue:[
             self windowGroup focusView:consumer byTab:true.
         ] ifFalse:[
             consumer requestFocus.
             "/ consumer requestFocus. - could be denied; but we force it here
-            windowGroup focusView:consumer byTab:false.
+            self windowGroup focusView:consumer byTab:false.
         ].
     ].
 
@@ -814,6 +814,6 @@
 !View class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/View.st,v 1.83 2014-02-18 17:17:20 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/View.st,v 1.84 2014-04-03 14:34:55 cg Exp $'
 ! !