summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mwidget.mod/mwidget.bmx10
1 files changed, 10 insertions, 0 deletions
diff --git a/mwidget.mod/mwidget.bmx b/mwidget.mod/mwidget.bmx
index 51b2573..88487f9 100644
--- a/mwidget.mod/mwidget.bmx
+++ b/mwidget.mod/mwidget.bmx
@@ -61,6 +61,7 @@ ModuleInfo "Author: Ian Cowburn"
ModuleInfo "Version: $Revision$"
Import maxgui.maxgui
+Import maxgui.drivers
Import brl.linkedlist
Import brl.event
Import brl.timer
@@ -2766,12 +2767,21 @@ Type Static
EndIf
Next
Else
+ Local handled:Int = False
+
For Local g:TMWidget=EachIn list
If g And g.gadget And g.gadget=e.source
DebugLog "Passing event to " + g.ToString()
g.Handle(e)
+ handled = True
EndIf
Next
+
+ If Not handled
+ If e.id = 259
+ End
+ EndIf
+ EndIf
EndIf
EndIf