Alt+Shift on Wayland causes an additional Alt keypress
Similar to #96 (closed), but it's about another keyboard shortcut and can be reproduced on mutter 3.28.2
on Archlinux.
"Switching to another layout" is configured to happen using Left Alt + Left Shift
.
Every single time I press those keys in that order (hold Left Alt, press and release Left Shift, release Left Alt), it's as if I had also pressed Left Alt
all by itself. The keyboard layout would switch (that is, Left Alt + Shift Alt
clearly gets triggered), but Left Alt
also appears to get triggered by itself, which causes problems.
This affects applications like Firefox, where pressing Left Alt
would toggle (show/hide) the menu bar.
Every time I change the keyboard layout (Left Alt + Left Shift
), an additional Left Alt
would "trigger" causing the menu bar to appear, so I need to press an additional Left Alt
to get rid of it (hide it). If not, Firefox's menu bar would intercept all my next keystrokes and cause trouble. If one is unfortunate enough to press fq
, it would even quit Firefox.
From what I remember, I've always been able to reproduce this annoying problem on GNOME + Wayland (but not when running on Xorg), which is one of the reasons I've postponed using Wayland.
Workaround: keeping the same switching shortcut configured (Left Alt + Left Shift
), but pressing the keys in reverse (hold Left Shift
, press and release Left Alt
, release Left Shift
) works around the problem.