| Summary: | Mac: SDL_GetModState reports incorrect Caps Lock state | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tim McDaniel <timmcd101> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 2.0.10 | ||
| Hardware: | All | ||
| OS: | macOS 10.14 | ||
|
Description
Tim McDaniel
2019-07-10 22:47:06 UTC
Also related: With change 12907, the key events for Caps Lock no longer match the physical Caps Lock key state. I realize this was done to avoid a permissions popup warning on macOS 10.15. I don't have a workaround for this at the moment. I doubt there is one. However, it's worth noting here that this behavior does not match SDL's behavior on Windows. bug 2157 is the related issue that led to the pre-12907 IOKit based Caps Lock tracking. (In reply to Tim McDaniel from comment #0) > I have tested this on macOS 10.14 & 10.15(beta), neither are available in > the Bugzilla OS field. This is fixed in Bugzilla now, sorry! > SDL_GetModState appears to be reporting incorrect Caps Lock modifier state. > Below is output from the checkkeys test app. Each of the 4 event lines > represents pressing and releasing the physical Caps Lock key. This is now fixed in https://hg.libsdl.org/SDL/rev/41528cbd80ab ... it should report the CapsLock modifier correctly now, thanks! I don't have a better workaround for keypress events at the moment, but I'll think on it more, even if we have to give up eventually. Let's track that over on Bug #2157 and close this one, though. --ryan. |