#FEATURE by stefan
authorStefan Vogel <sv@exept.de>
Thu, 06 Jun 2019 15:28:04 +0200
changeset 4275 47c5eb544d7a
parent 4274 ac618664faba
child 4276 3105917f58e6
#FEATURE by stefan class: ApplicationModel added: #ctrlDown used in several applications
ApplicationModel.st
--- a/ApplicationModel.st	Thu May 30 09:43:30 2019 +0200
+++ b/ApplicationModel.st	Thu Jun 06 15:28:04 2019 +0200
@@ -3761,6 +3761,17 @@
 
 !ApplicationModel methodsFor:'queries'!
 
+ctrlDown
+    "answer true if the control key is pressed"
+
+    |activeGroup|
+
+    activeGroup := WindowGroup activeGroup.
+    ^ activeGroup notNil and:[activeGroup sensor ctrlDown].
+
+    "Created: / 06-06-2019 / 15:24:51 / Stefan Vogel"
+!
+
 defaultWindowExtent
     "return my default window extent or nil.
      Return nil if the defaul extent should be computed by other means.