Skip to content

Commit

Permalink
macOS: generate up key event for command keys (#17124)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Oct 27, 2024
1 parent a0bcf79 commit cf540aa
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 cf540aa

Please sign in to comment.