macOS: generate up key event for command keys (#17124) (#17126)

This commit is contained in:
Eric Warmenhoven 2024-10-27 15:42:41 -04:00 committed by GitHub
parent 758c61afbe
commit dbf6c19209
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -428,6 +428,9 @@ static ui_application_t ui_application_cocoa = {
apple_input_keyboard_event(event_type == NSEventTypeKeyDown,
keycode, character, mod, RETRO_DEVICE_KEYBOARD);
if ((mod & RETROKMOD_META) && (event_type == NSEventTypeKeyDown))
apple_input_keyboard_event(false,
keycode, character, mod, RETRO_DEVICE_KEYBOARD);
}
break;
#if defined(HAVE_COCOA_METAL)