From 3f794d3abe35648236963b0e2ba513cfab48fe83 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 26 Feb 2024 17:48:18 +0100 Subject: Allow FL_COMMAND+'+' as macOS system menu shortcuts - cont'd --- src/Fl_MacOS_Sys_Menu_Bar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_MacOS_Sys_Menu_Bar.mm b/src/Fl_MacOS_Sys_Menu_Bar.mm index c671288bd..3221a38aa 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()) // have the system menu process the shortcut, highlighting the corresponding menu + if (item->visible() && item->shortcut() != FL_COMMAND+'+' ) // 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