macOS: remove test that became useless after 5f20698

This commit is contained in:
ManoloFLTK 2024-03-02 08:12:54 +01:00
parent 34b8801fed
commit a76229972e

View File

@ -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 ?
const Fl_Menu_Item *item = fl_sys_menu_bar->menu()->test_shortcut();
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]];
else // have FLTK process the shortcut associated to an invisible Fl_Menu_Item
fl_sys_menu_bar->picked(item);