This commit is contained in:
Kovid Goyal 2022-01-15 14:54:30 +05:30
parent c6ecdf0fa4
commit 06ff685f8e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -767,7 +767,7 @@ int _glfwPlatformInit(void)
debug_key("%s\n", [[event description] UTF8String]);
if (!_glfw.ignoreOSKeyboardProcessing) {
// first check if there is a global menu bar shortcut
if (_glfw.ignoreOSKeyboardProcessing && [[NSApp mainMenu] performKeyEquivalent:event]) {
if ([[NSApp mainMenu] performKeyEquivalent:event]) {
debug_key("keyDown triggerred global menu bar action ignoring\n");
last_keydown_shortcut_event.virtual_key_code = [event keyCode];
last_keydown_shortcut_event.timestamp = [event timestamp];