-
Notifications
You must be signed in to change notification settings - Fork 101
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
[Left/RightShift + <key>] not picked up by get_keys on wayland #349
Comments
- Force minifb to build x11 window since wayland window currently has an inconsistency with pressing shift keys, as reported in [this issue](emoon/rust_minifb#349)
Thanks for the report |
It looks like the source of this issue is that the wayland -> XKB keycode mapping takes into account whether shift is held and return the uppercase versions, but the XKB -> minifb keycode mapping only handles the lowercase XKB keycodes. rust_minifb/src/os/posix/wayland.rs Line 969 in 9862ca8
As an example, when The same issue applies to all keys (on my keyboard) except enter, space, escape, backspace, control, and function keys. Oddly, left alt and tab are both affected, so fixing that may take additional consideration. |
Thanks. I have started to move over to the latest wayland crates on a new branch, but it will likely take a while to get that work done as there are tons of code that doesn't work anymore and I haven't written any of the wayland backend myself, but there are tons of wayland open issues so I will try to get to them. |
When pressing the Left/Right-Shift key first, followed by any other key, the set of keys down returned by get_keys only contains the Left/Right-Shift key on the wayland build.
This is a program to demonstrate the issue:
This program,
I have tested:
The problem only occurs in the wayland builds, i.e. the program does not panic on the wayland builds.
The problem does not occur, i.e. the program does panic.
Additionally,
The text was updated successfully, but these errors were encountered: