mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
macOS: remove test that became useless after 5f20698
This commit is contained in:
@@ -437,7 +437,7 @@ static int process_sys_menu_shortcuts(int event)
|
|||||||
// is the last event the shortcut of an item of the fl_sys_menu_bar menu ?
|
// is the last event the shortcut of an item of the fl_sys_menu_bar menu ?
|
||||||
const Fl_Menu_Item *item = fl_sys_menu_bar->menu()->test_shortcut();
|
const Fl_Menu_Item *item = fl_sys_menu_bar->menu()->test_shortcut();
|
||||||
if (!item) return 0;
|
if (!item) return 0;
|
||||||
if (item->visible() && item->shortcut() != FL_COMMAND+'+' ) // have the system menu process the shortcut, highlighting the corresponding menu
|
if (item->visible()) // have the system menu process the shortcut, highlighting the corresponding menu
|
||||||
[[NSApp mainMenu] performKeyEquivalent:[NSApp currentEvent]];
|
[[NSApp mainMenu] performKeyEquivalent:[NSApp currentEvent]];
|
||||||
else // have FLTK process the shortcut associated to an invisible Fl_Menu_Item
|
else // have FLTK process the shortcut associated to an invisible Fl_Menu_Item
|
||||||
fl_sys_menu_bar->picked(item);
|
fl_sys_menu_bar->picked(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user