KeyboardProcessor.st
changeset 2400 b47e642dd9bc
parent 2398 d74cf11e61d5
child 2443 1043b37a4a5a
--- a/KeyboardProcessor.st	Wed Feb 27 15:55:22 2008 +0100
+++ b/KeyboardProcessor.st	Sat Mar 08 15:20:20 2008 +0100
@@ -284,7 +284,15 @@
                     ^ true
                 ].
             ].
-        ].        
+        ].
+        "/ support ALT-F4 (close window)
+        (key == #CloseWindowRequest) ifTrue:[
+            app notNil ifTrue:[
+                app closeRequest
+            ] ifFalse:[
+                topView closeRequest
+            ].
+        ].
     ].
 
     "/ let view dispatch it.
@@ -331,5 +339,5 @@
 !KeyboardProcessor class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/KeyboardProcessor.st,v 1.42 2008-02-26 21:47:57 ab Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/KeyboardProcessor.st,v 1.43 2008-03-08 14:20:20 cg Exp $'
 ! !