File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ # Shutdownrequest message being sent twice when triggered from a quit in menu
Original file line number Diff line number Diff line change @@ -319,7 +319,14 @@ - (BOOL)performKeyEquivalent: (NSEvent *)event
319319 // Otherwise, we lock menuSelect firing, and propagate a keydown/keyup.
320320 BOOL t_key_equiv;
321321 MCMacPlatformLockMenuSelect ();
322- t_key_equiv = [super performKeyEquivalent: event];
322+
323+ // SN-2014-09-30: [[ Bug 13510 ]] We don't want to fire the Cmd+Q key equivalent, which
324+ // would call applicationShouldTerminate.
325+ if ([[event characters ] compare: @" q" options: NSCaseInsensitiveSearch] != NSOrderedSame)
326+ t_key_equiv = [super performKeyEquivalent: event];
327+ else
328+ t_key_equiv = YES ;
329+
323330 MCMacPlatformUnlockMenuSelect ();
324331
325332 BOOL t_force_keypress;
You can’t perform that action at this time.
0 commit comments