-
-
Notifications
You must be signed in to change notification settings - Fork 3k
fix(caps-warning): caps warning is inverted when caps is active on page load (@fehmer, @Leonabcd123) #7478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
This works, but it does reintroduce internal inversion for Linux CapsLock events. Conceptually, the issue on Linux is timing (modifier state not settled at event time), not that getModifierState("CapsLock") is incorrect. A deferred read would avoid platform-specific inversion and keep CapsLock state fully derived from OS state. Might be worth considering if we want to avoid encoding Linux timing assumptions into logic long-term. |
This reverts commit f29ffd4.
Description
Update caps state on keydown rather than keyup
Fixes #7472