diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-02-26 17:48:18 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-02-26 17:48:18 +0100 |
| commit | 3f794d3abe35648236963b0e2ba513cfab48fe83 (patch) | |
| tree | ab01822909614d60a00b649dce7731ccd1a78751 /src/Fl_MacOS_Sys_Menu_Bar.mm | |
| parent | 0818d4ec5ba17314187f612a88814b02ae24b710 (diff) | |
Allow FL_COMMAND+'+' as macOS system menu shortcuts - cont'd
Diffstat (limited to 'src/Fl_MacOS_Sys_Menu_Bar.mm')
| -rw-r--r-- | src/Fl_MacOS_Sys_Menu_Bar.mm | 2 |
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 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); |
