Skip to content

macOS modifiers become sticky when released simultaneously #10934

@williamhCode

Description

@williamhCode

Hello, I updated to the SDL3 main branch a few weeks ago (and recently also), and this issue appeared.

Basically, when two modifiers are released simultaneously, the modifiers become sticky.

This becomes problematic when using macros on mouses, when keystrokes are invoked programmatically and thus very precisely. I have a test macro that presses alt (it pressed both left and right), and the alt modifier stays even after I released it. Only when I press another modifier does it get reset. My guess is there might be a race condition when trying to set the mod state simultaneously?

sdlbug.mov

Here im invoking the macro that presses LALT + RALT, then pressing jkjk. Only after i press ctrl, do the mod state reset.

Metadata

Metadata

Assignees

Labels

waitingWaiting on user response

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions