From a76229972e1c502690cdf584f157db2ba612d5c2 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 2 Mar 2024 08:12:54 +0100 Subject: macOS: remove test that became useless after 5f20698 --- src/Fl_MacOS_Sys_Menu_Bar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_MacOS_Sys_Menu_Bar.mm') diff --git a/src/Fl_MacOS_Sys_Menu_Bar.mm b/src/Fl_MacOS_Sys_Menu_Bar.mm index bacabc7da..1240dc837 100644 --- a/src/Fl_MacOS_Sys_Menu_Bar.mm +++ b/src/Fl_MacOS_Sys_Menu_Bar.mm @@ -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); -- cgit v1.2.3