Bug 446397 - Cannot set Left Alt+Shift as keyboard layout switching shortcut on Wayland
Summary: Cannot set Left Alt+Shift as keyboard layout switching shortcut on Wayland
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (other bugs)
Version First Reported In: 5.23.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2021-12-02 23:19 UTC by Mikhail Ramendik
Modified: 2021-12-09 17:30 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Ramendik 2021-12-02 23:19:53 UTC
SUMMARY

I need to use Left Alt+Shift to switch between keyboard layouts. I configured this when installing Fedora 33 (upgraded to 34 then35 since). In an X11 Plasma session the shortcut somehow still works; in a Wayland Plasma session it does not.

In the System Settings, under Workplace > Shortcuts> Keyboard layout switcher, this shortcut is not visible and can not be set.  "Switch to next keyboard layout" is set at Ctrl+Alt+K. When I expand it and click "Add custom shortcut" then press Left Alt and Shift, the shortcut is not saved. Instead, it awaits a further key press.


STEPS TO REPRODUCE
1. Open KDE System Settings
2. Select Workplace > Shortcuts> Keyboard layout switcher
3. Expand Switch to next keyboard layout
4. Click +Add Custom Shortcut
5. Hold Left Alt and Shift

OBSERVED RESULT
No shortcut is set, the system awaits a further key press

EXPECTED RESULT
Left ALt+Shift shortcut is set

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Mikhail Ramendik 2021-12-02 23:35:21 UTC
Update: the setting works in X11 because it is in /etc/X11/xorg.conf.d/00-keyboard.conf

It can not be set via KDE settings which creates a regression under Wayland.
Comment 2 Mikhail Ramendik 2021-12-09 15:50:43 UTC
Update: I have found a way to set Alt+Shift as the shortcut under Wayland!

KDE Settings > Hardware > Input devices > Keyboard > Layouts , click "Main shortcut" and you get a selection that includes Alt+Shift.

But I can't do this same thing under Workspace > Shortcuts. It's a usability issue with KDE Settings.
Comment 3 Andrey 2021-12-09 17:19:38 UTC
It seems as expected behavior - for modifiers-only shortcuts, Plasma has no UI currently but one can do it with manually editing special config.
So maybe close this to prevent confusion, and open a new issue instead about impossibility to do it via UI?
Comment 4 Mikhail Ramendik 2021-12-09 17:22:32 UTC
It *can* be done with the UI. Just in another place of the UI compared to all other shortcuts.
Comment 5 Andrey 2021-12-09 17:27:33 UTC
Yes, that's what I mean - the "usual" shortcuts-assignment dialogs do not accept modifiers-only shortcuts.
Keboard KCM is a specialized one.