Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7490236

Browse files
committed
Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). This makes the CGI tools work nicely for Quit.
1 parent fd9925a commit 7490236

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Mac/Lib/lib-toolbox/MiniAEFrame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def lowlevelhandler(self, event):
8181
if c == '.':
8282
raise KeyboardInterrupt, "Command-period"
8383
if c == 'q':
84+
MacOS.OutputSeen()
8485
self.quitting = 1
8586
return
8687
elif what == mouseDown:
@@ -96,6 +97,7 @@ def lowlevelhandler(self, event):
9697
name = self.applemenu.GetMenuItemText(item)
9798
Menu.OpenDeskAcc(name)
9899
elif id == self.quitid and item == 1:
100+
MacOS.OutputSeen()
99101
self.quitting = 1
100102
Menu.HiliteMenu(0)
101103
return

0 commit comments

Comments
 (0)