Bug 448362 - win+space layout change doesn't work with extra typographic characters enabled
Summary: win+space layout change doesn't work with extra typographic characters enabled
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://gitlab.freedesktop.org/xkeybo...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-13 13:21 UTC by Andrey
Modified: 2022-01-15 22:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ] }; // " "