8000 native/macos: Fix key up events when command key is pressed by Pewnack · Pull Request #626 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
not-fl3 merged 1 commit into
not-fl3:masterfrom
Pewnack:macos_superkey
May 20, 2026
Merged

not-fl3 merged 1 commit into
not-fl3:masterfrom
Pewnack:macos_superkey

Conversation

@Pewnack
@Pewnack Pewnack commented Apr 27, 2026
Copy link
Copy Markdown
Contributor

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>
@not-fl3
not-fl3 commented May 20, 2026
Copy link
Copy Markdown
Owner

Thanks for PR!

@not-fl3
not-fl3 merged commit 3c27371 into not-fl3:master May 20, 2026
11 checks passed
@Pewnack
Pewnack deleted the macos_superkey branch May 21, 2026 07:51
@Pewnack
Pewnack commented May 21, 2026
Copy link
Copy Markdown
Contributor Author

Thanks for the merge!

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

2 participants

0