Skip to content
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

Pressing Alt+Caps Lock will sometimes break the keyup event for Caps Lock #4890

Closed
Susko3 opened this issue Oct 29, 2021 · 1 comment
Closed
Labels
abandoned Bug has been abandoned for various reasons

Comments

@Susko3
Copy link
Contributor

Susko3 commented Oct 29, 2021

Alt+Caps Lock is the keyboard shortcut to switch to kana mode when using the Microsoft Japanese IME (on Windows).

When testing I used SDL_SetHint(SDL_HINT_EVENT_LOGGING, "2") and SDL_StartTextInput() (to actually make the IME work and respond to keyboard shortcuts).

Sample log output when the bug happens: (holdingAlt, and then tapping Caps Lock, then releasing Alt)

INFO: SDL EVENT: SDL_KEYDOWN (timestamp=10539 windowid=1 state=pressed repeat=false scancode=226 keycode=1073742050 mod=256)
INFO: SDL EVENT: SDL_KEYDOWN (timestamp=10768 windowid=1 state=pressed repeat=false scancode=57 keycode=1073741881 mod=8448)
INFO: SDL EVENT: SDL_KEYUP (timestamp=10853 windowid=1 state=released repeat=false scancode=226 keycode=1073742050 mod=8192)

When it works as expected:
(doesn't seem to break when holding Alt, then pressing Caps Lock, releasing Alt, and only then releasing Caps Lock)

INFO: SDL EVENT: SDL_KEYDOWN (timestamp=374722 windowid=1 state=pressed repeat=false scancode=226 keycode=1073742050 mod=8448)
INFO: SDL EVENT: SDL_KEYDOWN (timestamp=374853 windowid=1 state=pressed repeat=false scancode=57 keycode=1073741881 mod=256)
INFO: SDL EVENT: SDL_KEYUP (timestamp=375005 windowid=1 state=released repeat=false scancode=226 keycode=1073742050 mod=0)
INFO: SDL EVENT: SDL_KEYUP (timestamp=375216 windowid=1 state=released repeat=false scancode=57 keycode=1073741881 mod=0)

Other keyboard shortcuts include Shift+Caps Lock and Ctrl+Caps Lock, all changing the IME input mode in various way, all breaking the keyup event for Caps Lock.

@slouken
Copy link
Collaborator

slouken commented Nov 7, 2023

SDL 2.0 is now in maintenance mode, and all inactive issues are being closed. If this issue is impacting you, please feel free to reopen it with additional information.

@slouken slouken closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abandoned Bug has been abandoned for various reasons
Projects
None yet
Development

No branches or pull requests

2 participants