SUMMARY When configuring keyboard layout switching, it would be very useful if we can stop using the xkbcommon "Main shorctuts" with all their limitations (e.g. https://github.com/xkbcommon/libxkbcommon/issues/92 ) and use Plasma internal keyboard shortcut management. But only if bugs #464805 and #470256 are also solved - otherwise we will still be in the same leaky boat. STEPS TO REPRODUCE 1. Open System Settings -> Input Devices -> Keyboard -> Layouts 2. Click the shortcut input for "Alternative Shortcut" 3. Press and hold ALT+SHIFT, then release them. OBSERVED RESULT Nothing happens. The shortcut input button still shows "Input..." EXPECTED RESULT The shortcut button will show "Alt+Shift" and will set up the global shortcut ALT+SHIFT to trigger layout switching. SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.27.80 KDE Frameworks Version: 5.240.0 Qt Version: 6.5.0 Kernel Version: 6.2.0-20-generic (64-bit) Graphics Platform: offscreen Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz Memory: 31.2 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 630
And single-modifier shortcuts don't work also?
(In reply to Andrey from comment #1) > And single-modifier shortcuts don't work also? Correct. In the shortcuts KCM, if I try to enter a multi-modifier-only shortcut, it will succeed setting up the shortcut, using only one of the modifiers (interestingly, the modifier that is released first is used - i.e. for the sequence ALT_press, SHIFT_press, SHIFT_release, ALT_release - then SHIFT will be chosen as the single modifier that is being set). In the keyboard KCM, any combination of modifier only presses and releases (of either one or more keys) leave the input field without any key combination registered.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/215
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2133
Git commit ec6869d945d73d37042232c93116aac6a19162a4 by Yifan Zhu. Committed on 27/03/2024 at 21:49. Pushed by fanzhuyifan into branch 'master'. kkeysequencewidget: expose modifierOnlyAllowed M +10 -0 src/kkeysequencewidget.cpp M +10 -0 src/kkeysequencewidget.h https://invent.kde.org/frameworks/kxmlgui/-/commit/ec6869d945d73d37042232c93116aac6a19162a4
Git commit d3916175477a88d83615501510a2d18cde62096c by Yifan Zhu. Committed on 27/03/2024 at 21:53. Pushed by fanzhuyifan into branch 'master'. kcms/keyboard: allow modifierOnly shortcuts M +6 -0 kcms/keyboard/kcm_keyboard.ui https://invent.kde.org/plasma/plasma-desktop/-/commit/d3916175477a88d83615501510a2d18cde62096c