Skip to content

native/macos: Fix key up events when command key is pressed#626

Open
Pewnack wants to merge 1 commit intonot-fl3:masterfrom
Pewnack:macos_superkey
Open

native/macos: Fix key up events when command key is pressed#626
Pewnack wants to merge 1 commit intonot-fl3:masterfrom
Pewnack:macos_superkey

Conversation

@Pewnack
Copy link
Copy Markdown
Contributor

@Pewnack Pewnack commented Apr 27, 2026

On macOS when the command key (super key) is pressed all KeyUp events are swallowed until the command key is released again. So when you press COMMAND + you get a KeyDown event for both COMMAND and , but when you release both keys again you only get a KeyUp event for the COMMAND key.

This is fixed by faking these events ourselves. In the main loop (the run function) we already trap the raw event. We use this event to generate KeyUp events.

Closes not-fl3/macroquad#980

…s are swallowd.

Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_key_down gets "stuck" when chording with Command on macOS

1 participant