SUMMARY When pressing "Alt Gr" + "spacebar" on my laptop, with the keyboard layout set as French BÉPO, a space is written instead of an underscore. STEPS TO REPRODUCE 1. Set keyboard layout to BÉPO 2. Open any input (app launcher search bar for exemple) 3. Press "Alt Gr" + "spacebar" to enter an underscore OBSERVED RESULT A space is entered EXPECTED RESULT An underscore should be entered SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0 ADDITIONAL INFORMATION This bug is also present in Sway/wlroots: https://github.com/swaywm/sway/issues/8199 However it works fine in gnome (wayland), weston, and tty. It unfortunately seems sort of specific to this machine (Lenovo 82YM Yoga 7 14ARP8), as it works fine on two other device. Also, plugging in an external keyboard doesn't fix the issue.
Does this happen on X11, Wayland, or both?
Hi! It happens on both Kde session types, X11 and Wayland. However I tried to run an application directly in X11 (ghostty in xinitrc and running startx), and it works fine there
Could you provide your keyboard configuration `~/.config/kxkbrc` for both machines? Could you try the following command in a Wayland session, keep the blank focused while typing `AltGr + Space` then copy the output of the command here? xkbcli interactive-wayland Note that you may need to install the package libxkbcommon-tools or similar name.
Created attachment 181814 [details] xkbcli interactive-wayland output Here is the xkbcli interactive-wayland output in a wayland session
Created attachment 181815 [details] The ~/.config/kxbrc file on the machine where the problem occurs And here are the contents of the kxbrc file on the lenovo machine
Created attachment 181816 [details] /etc/vconsole.conf on the machine where the input works And finally, the machine where it works has no kxbrc file, and is instead configured with /etc/vconsole.conf
Created attachment 181817 [details] /etc/vconsole.conf on the machine where the input works (fixed) Fixed a typo in the /etc/vconsole.conf
You use an option to switch layouts using the space key: Options=grp:win_space_toggle which modifies the space key and is thus incompatible with the AltGr levels. You should either: - move the Bépo layout at the second or later position, OR - deactivate this XKB option (advanced key binding) and instead use Plasma’s own feature to define the key combo to switch layouts.
(In reply to Wismill from comment #8) > You use an option to switch layouts using the space key: > > Options=grp:win_space_toggle > > which modifies the space key and is thus incompatible with the AltGr levels. > You should either: > - move the Bépo layout at the second or later position, OR > - deactivate this XKB option (advanced key binding) and instead use Plasma’s > own feature to define the key combo to switch layouts. That was it. Thank you so much ! I wouldn't have guessed that the shortcut to switch layout could have an impact on the AltGr levels. Having a warning of some kind in the UI would be great, but I'm not sure where the correct place to indicate conflicting key mappings and shortcuts would be. I guess you could mark this bug as Resolved, thanks a lot for your time.
(In reply to Kilian GUILLAUME from comment #9) > Having a warning of some kind in the UI would be great, but I'm not sure > where the correct place to indicate conflicting key mappings and shortcuts > would be. It would be nice indeed, but by essence all the XKB options overwrite the layouts in some way, so it is hard to know *in general* if an overwrite is undesired. But maybe at some point, XKB options that can be handled at Plasma level like `grp:win_space_toggle` will be disabled in favor of the Plasma equivalent. Marked as “solved (upstream)”, because it’s more an xkeyboard-config issue.