summaryrefslogtreecommitdiff
path: root/src/Fl_MacOS_Sys_Menu_Bar.mm
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-02 08:12:54 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-02 08:12:54 +0100
commita76229972e1c502690cdf584f157db2ba612d5c2 (patch)
tree451d9ba04f5fa237c6fcb9b1e0099fa4bd960ddc /src/Fl_MacOS_Sys_Menu_Bar.mm
parent34b8801fedba0d9f5ee09c9f08ea56cb9f67a7cc (diff)
macOS: remove test that became useless after 5f20698
Diffstat (limited to 'src/Fl_MacOS_Sys_Menu_Bar.mm')
-rw-r--r--src/Fl_MacOS_Sys_Menu_Bar.mm2
1 files changed, 1 insertions, 1 deletions
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);