Bug 448362

Summary: win+space layout change doesn't work with extra typographic characters enabled
Product: [Applications] systemsettings Reporter: Andrey <aa.shtv>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: butirsky, fabian, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
URL: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/295
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andrey 2022-01-13 13:21:50 UTC
SUMMARY
You can't switch layout using "win+space" shortcut if you checked "Enable extra typographic characters"


STEPS TO REPRODUCE
1. Open System Settings / Input Devices / Keyboard
2. On Layouts tab set "Main shortcuts" to "Win+Space" (and add second layout if needed)
3. On Advanced tab check Miscellaneous compatibility options / Enable extra typographic characters"
4. Try to switch layout using Win+Space

OBSERVED RESULT
Nothing happened or System receive "space" character input from keyboard

EXPECTED RESULT
Layout switch

SOFTWARE/OS VERSIONS
KDE Neon User edition
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Also checked on Debian 11: Same result. On GNOME X11 session with extra typographic characters enabled Win+Space shortcut works.
Comment 1 Fabian Vogt 2022-01-13 21:34:01 UTC
Does it work after restarting kglobalaccel5?
Comment 2 Andrey 2022-01-14 11:31:39 UTC
(In reply to Fabian Vogt from comment #1)
> Does it work after restarting kglobalaccel5?

Neither after restarting kglobalaccel5 nor after rebooting PC. I've seen this (broken) behavior
Comment 3 Andrey 2022-01-14 11:32:59 UTC
(In reply to Andrey from comment #2)
> (In reply to Fabian Vogt from comment #1)
> > Does it work after restarting kglobalaccel5?
> 
> Neither after restarting kglobalaccel5 nor after rebooting PC. I've seen
> this (broken) behavior

...  for 7 month at least.
Comment 4 Fabian Vogt 2022-01-15 22:53:07 UTC
I can reproduce the issue. Plasma isn't involved at all, it's that the definition of the space key in "misc:typo" overrides "grp:win_space_toggle".

https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/90 is similar to this, but it only references Win+Space getting broken by certain layouts. The pending merge request however also addresses the issue with "misc:typo": https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/295

As a workaround, you could edit /usr/share/X11/xkb/symbols/typo (whereever that might be in your distro) and remove the line:

key <SPCE> { [    space,      space,          nobreakspace,          nobreakspace ] }; // " "