winit icon indicating copy to clipboard operation
winit copied to clipboard

Shift release WindowEvent missing `virtual_keycode` when `shift:both_capslock` set on Linux X11

Open benfrankel opened this issue 5 years ago • 2 comments

Platform: Linux, X11.

After running setxkbmap -option to remove all keyboard options, LShift press / release WindowEvents have virtual_keycode: Some(LShift), as expected (same for RShift).

However, after running setxkbmap -option shift:both_capslock, LShift and RShift release WindowEvents both have virtual_keycode: None, even though the press events still have Some.

benfrankel avatar Sep 28 '21 15:09 benfrankel

Just noticed this is a duplicate of #361.

benfrankel avatar Sep 28 '21 15:09 benfrankel

Platform: Arch Linux, KDE 5.23.5 running Wayland

Noting I also have this issue for shift keys for the same reason. The same problem also shows up but for control when I use both control keys to switch keyboard layouts (grp:ctrls_toggle). I'm guessing this is related to XKB?

toveri avatar Feb 04 '22 23:02 toveri