[fltk.general] Re: Fl_Sys_Menu_Bar shortcut bug on MacOS

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: Fl_Sys_Menu_Bar shortcut bug on MacOS Manolo Oct 11, 2021 top right image
I've looked more into details at this issue.
The FLTK code calls cocoa when processing key events so that the system menu bar
get highlighted when a system menu item shortcut is typed, as expected in macOS.
The statement in question is this:
        [[NSApp mainMenu] performKeyEquivalent:[NSApp currentEvent]];
It would be possible to handle system menus completely inside FLTK code, and that would
be equivalent to what happens when using Fl_Menu_Bar rather than Fl_Sys_Menu_Bar.
With that, a shortcut that is also a dead key would not block recognition of the next keystroke.
But, the system menu bar would not be highlighted each time a system menu shortcut is typed.

I believe the current situation is preferable.

You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/1885d75e-f5ff-40b3-94cd-d1ad21424413n%40googlegroups.com.
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2023 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.