#UI_ENHANCEMENT by exept
authorClaus Gittinger <cg@exept.de>
Fri, 01 Nov 2019 12:32:05 +0100
changeset 4390 8d9b8e2add26
parent 4389 8e185bcef3dd
child 4391 87ceb93d9ad1
#UI_ENHANCEMENT by exept class: ApplicationSubView added: #keyPress:x:y:
ApplicationSubView.st
--- a/ApplicationSubView.st	Sun Oct 27 10:31:43 2019 +0100
+++ b/ApplicationSubView.st	Fri Nov 01 12:32:05 2019 +0100
@@ -137,6 +137,23 @@
 
 !
 
+keyPress:key x:x y:y
+    <resource: #keyboard ( #Help) >
+
+    |app|
+
+    key == #Help ifTrue:[
+        Error handle:[:ex |
+        ] do:[
+            (app := self application) notNil ifTrue:[
+                app helpKeyPressed.
+                ^ self.
+            ].
+        ].
+    ].
+    super keyPress:key x:x y:y
+!
+
 preRealize
     |app|