#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Fri, 12 Oct 2018 19:07:47 +0200
changeset 8502 7930345bea23
parent 8501 82a7269a3173
child 8503 fcd14f4ec13f
#DOCUMENTATION by cg class: WindowGroup comment/format in: #executePreEventHooksFor: #processEventsWithModalGroup:
WindowGroup.st
--- a/WindowGroup.st	Fri Oct 12 19:06:23 2018 +0200
+++ b/WindowGroup.st	Fri Oct 12 19:07:47 2018 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -1638,16 +1640,25 @@
     ].
 
     preEventHook notNil ifTrue:[
-        (preEventHook processEvent:anEvent) ifTrue:[ ^ true ].
+        (preEventHook processEvent:anEvent) ifTrue:[
+            "/ Transcript showCR:('event was eaten by %1' bindWith:preEventHook).
+            ^ true 
+        ].
     ].
     preEventHooks notNil ifTrue:[
         preEventHooks copy do:[:eachHook |
             "/ can only be nil if changed, while enumerating...
             eachHook notNil ifTrue:[
                 eachHook isBlock ifTrue:[
-                    (eachHook value:anEvent) ifTrue:[ ^ true ].
+                    (eachHook value:anEvent) ifTrue:[ 
+                        "/ Transcript showCR:('event was eaten by %1' bindWith:eachHook).
+                        ^ true 
+                    ].
                 ] ifFalse:[
-                    (eachHook processEvent:anEvent) ifTrue:[ ^ true ].
+                    (eachHook processEvent:anEvent) ifTrue:[ 
+                        "/ Transcript showCR:('event was eaten by %1' bindWith:eachHook).
+                        ^ true 
+                    ].
                 ]
             ]
         ]