Exclude processing of system menu shortcuts when a modal window is running.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
b01cbd577b
commit
0b6475d8d6
@ -457,7 +457,7 @@ void Fl_Sys_Menu_Bar::draw() {
|
||||
|
||||
static int process_sys_menu_shortcuts(int event)
|
||||
{
|
||||
if (event != FL_SHORTCUT || !fl_sys_menu_bar) return 0;
|
||||
if (event != FL_SHORTCUT || !fl_sys_menu_bar || Fl::modal()) return 0;
|
||||
// have the system menu process the shortcut, highlighting the corresponding menu if found
|
||||
return [[NSApp mainMenu] performKeyEquivalent:[NSApp currentEvent]];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user