WindowGroup.st
changeset 4180 85392e34c7a7
parent 4174 5dffd8de17fc
child 4182 ccf4b7f75ebf
--- a/WindowGroup.st	Mon May 17 18:50:36 2004 +0200
+++ b/WindowGroup.st	Mon May 17 18:52:20 2004 +0200
@@ -1869,9 +1869,16 @@
 !WindowGroup methodsFor:'focus control'!
 
 defaultKeyboardConsumer
+    |view keyboardProcessor|
+
+    view := self mainView.
+    view notNil ifTrue:[
+        keyboardProcessor := view keyboardProcessor.
+        keyboardProcessor notNil ifTrue:[
+            ^ keyboardProcessor componentWithInitialFocus.
+        ]
+    ].
     ^ nil
-
-    "Created: / 20.5.1999 / 18:17:07 / cg"
 !
 
 explicitFocusView
@@ -2740,7 +2747,7 @@
 !WindowGroup class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/WindowGroup.st,v 1.263 2004-05-13 18:47:57 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/WindowGroup.st,v 1.264 2004-05-17 16:52:20 cg Exp $'
 ! !
 
 WindowGroup initialize!