#BUGFIX by sr
authorsr
Tue, 20 Mar 2018 12:02:05 +0100
changeset 8310 468aa7b09b9b
parent 8309 bc91f4defe96
child 8311 44eef55df60c
#BUGFIX by sr care for #topViews nil case class: WindowGroup changed: #processEventsWithModalGroup:
WindowGroup.st
--- a/WindowGroup.st	Fri Mar 16 12:32:23 2018 +0100
+++ b/WindowGroup.st	Tue Mar 20 12:02:05 2018 +0100
@@ -1644,7 +1644,7 @@
 
     <resource: #keyboard (#Escape )>
 
-    |event busyHookBlock busyHookCalled|
+    |event busyHookBlock busyHookCalled modalGroupTopViews|
 
     self processExposeEvents.
 
@@ -1664,7 +1664,10 @@
                 "/ an incoming event for a masterView, 
                 "/ while being blocked by some other modalView.
 
-                modalTop := modalGroup topViews firstOrNil.
+                modalGroupTopViews := modalGroup topViews.  
+                modalGroupTopViews notNil ifTrue:[
+                    modalTop := modalGroupTopViews firstOrNil.
+                ].
 
                 event isKeyEvent ifTrue:[
                     "/ forward keyboard events to my modal