From: Just van Rossum Date: Mon, 27 Mar 2000 17:13:32 +0000 (+0000) Subject: my previous patch didn't give enough events to SIOUX, this one fixes that (jvr) X-Git-Tag: v1.6a1~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c3baaf19c7d6a112a00ad36e31fe7a142b91542;p=thirdparty%2FPython%2Fcpython.git my previous patch didn't give enough events to SIOUX, this one fixes that (jvr) --- diff --git a/Mac/Lib/lib-toolbox/MiniAEFrame.py b/Mac/Lib/lib-toolbox/MiniAEFrame.py index 6c2d5e84a3fc..e57d78e4b711 100644 --- a/Mac/Lib/lib-toolbox/MiniAEFrame.py +++ b/Mac/Lib/lib-toolbox/MiniAEFrame.py @@ -82,6 +82,7 @@ class MiniApplication: raise KeyboardInterrupt, "Command-period" if c == 'q': self.quitting = 1 + return elif what == mouseDown: partcode, window = Win.FindWindow(where) if partcode == inMenuBar: @@ -97,9 +98,9 @@ class MiniApplication: elif id == self.quitid and item == 1: self.quitting = 1 Menu.HiliteMenu(0) - else: - # Anything not handled is passed to Python/SIOUX - MacOS.HandleEvent(event) + return + # Anything not handled is passed to Python/SIOUX + MacOS.HandleEvent(event) def getabouttext(self): return self.__class__.__name__