Skip to content

Commit

Permalink
macOS: generate up key event for command keys (libretro#17124) (libre…
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Oct 27, 2024
1 parent 758c61a commit dbf6c19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/drivers/ui_cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ - (void)sendEvent:(NSEvent *)event {

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)
Expand Down

0 comments on commit dbf6c19

Please sign in to comment.