Bug 392961 - Layout shortcut makes all other shortcuts starting with that combination unavailable
Summary: Layout shortcut makes all other shortcuts starting with that combination unav...
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: 5.21.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 393468 399049 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-04-10 11:02 UTC by Aleksandar Vasilev
Modified: 2024-04-11 16:48 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandar Vasilev 2018-04-10 11:02:23 UTC
I am using two keyboard layouts and if I configure layout shortcut to "alt+shift" then I am not able to use any shortcut combination that has alt+shift in it.
For instance "reverse task switching" is not working also in other programs some shortcuts having alt+shift is not working too.

In older versions of KDE I was able to use that shortcut along with others.
Comment 1 Patrick Silva 2018-04-24 14:33:59 UTC
Cannot confirm on Arch Linux, plasma 5.12.4.

I can set alt(left)+shift(left) shortcut to change keyboard layouts and alt+shift+tab shortcut is still working to toggle windows.
Comment 2 Vangelis 2018-04-24 14:38:33 UTC
I have two laptops with identical setup and I face the problem in only one of them :/

More info here: https://forum.kde.org/viewtopic.php?f=289&t=151314
Comment 3 Patrick Silva 2018-04-24 17:55:57 UTC
*** Bug 393468 has been marked as a duplicate of this bug. ***
Comment 4 Adrian Ban 2018-09-13 07:51:18 UTC
Hi,

I'm facing the same issue with KDE Plasma 5.13.5, Debian Buster.
In my case there are 2 different situations:

1. If I'm mapping ALT+SHIFT+TAB to the "reverse walk through windows" and I have also ALT+TAB for "walk through windows", KDE is doing only "walk through windows".
2. If I'm removing ALT+TAB, then KDE is trying to do "reverse walk through windows", but is stopping after first windows. Is not moving farther.

My laptop is Asus G56JK series.
Comment 5 Adrian Ban 2018-09-13 23:10:09 UTC
Hi,

Becouse I couldn't reproduce the "back tab" from the keyboard, I've managed it by exporting the keyboard shortcuts from a VM and import them into my PC. Now the alt+shift+tab is working again.

Kind regards,
Adrian
Comment 6 Patrick Silva 2018-10-17 16:25:38 UTC
*** Bug 399049 has been marked as a duplicate of this bug. ***
Comment 7 Michal Kec (MiK) 2018-12-09 15:22:50 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Patrick Silva 2019-03-25 12:54:20 UTC
duplicate of bug 387500 ?
Comment 9 phrxmd 2020-06-20 21:06:44 UTC
Confirmed with Plasma 5.19 and Frameworks 5.71 on OpenSUSE Tumbleweed.

STEPS TO REPRODUCE:
1. Set "Alt-Shift" as a hotkey for shifting keyboard layouts. 
2. Open more than three programs.
3. Press Alt-Tab a few times and watch in which direction the task switching goes.
4. Press Alt-Shift-Tab.

OBSERVED BEHAVIOUR
Alt-Shift-Tab switches tasks in the same order as Alt-Tab.

EXPECTED BEHAVIOUR
Alt-Shift-Tab switches tasks in the opposite order as Alt-Tab.
Comment 10 Michal Kec (MiK) 2020-12-06 16:29:39 UTC
This bug is really annoying, as it prevents people from using shortcuts in many popular apps. Whoever uses Alt+Tab for switching keyboard layout, is forced to use mouse or find out annoying workarounds. 

I believe this is not just usability issue, but also a serious accessibility problem then.
Comment 11 Daniel Duris 2021-01-28 23:12:56 UTC
Still not working. Latest KDE Neon. Once ALT+SHIFT is used for keyboard layout switching, then reverse tabbing via apps using alt+shift+tab does not work.
Comment 12 Michal Kec (MiK) 2021-02-20 12:38:34 UTC
I can confirm this bug even with brand new Plasma 5.21.

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-051100-generic
OS Type: 64-bit
Graphics Platform: X11
Comment 13 Nicolas Fella 2021-05-24 18:34:02 UTC
This issue is not exclusive to Plasma. The root cause is in how X11/XKB handles the layout switching shortcuts and has been around since pretty much ever. See https://gitlab.freedesktop.org/xorg/xserver/-/issues/258
Comment 14 David 2021-05-24 18:41:56 UTC
(In reply to Nicolas Fella from comment #13)
> This issue is not exclusive to Plasma. The root cause is in how X11/XKB
> handles the layout switching shortcuts and has been around since pretty much
> ever. See https://gitlab.freedesktop.org/xorg/xserver/-/issues/258

Can it be fixed in Wayland then?
Comment 15 Nicolas Fella 2021-05-24 18:44:33 UTC
Not easily at least. The relevant component here, XKB, is used on Wayland as well
Comment 16 Michal Kec (MiK) 2021-05-25 16:43:55 UTC
(In reply to Nicolas Fella from comment #13)
> This issue is not exclusive to Plasma. The root cause is in how X11/XKB
> handles the layout switching shortcuts and has been around since pretty much
> ever. 

I'm pretty confident that "alt+shift+key" shortcuts used to work perfectly in KDE4 times. I had always "alt+shift" for layout shortcut in Kubuntu versions 10.x - 14.x. Thus there has to be some KDE-specific fix for that.
Comment 17 David 2021-05-25 20:06:13 UTC
(In reply to Michal Kec (MiK) from comment #16)
> (In reply to Nicolas Fella from comment #13)
> > This issue is not exclusive to Plasma. The root cause is in how X11/XKB
> > handles the layout switching shortcuts and has been around since pretty much
> > ever. 
> 
> I'm pretty confident that "alt+shift+key" shortcuts used to work perfectly
> in KDE4 times. I had always "alt+shift" for layout shortcut in Kubuntu
> versions 10.x - 14.x. Thus there has to be some KDE-specific fix for that.

Lurking in the bug report link, it seems some distributions provide a patched version of XKB which solves this issue:
https://bugs.gentoo.org/379827
https://aur.archlinux.org/packages/xorg-server-bug865/

Perhaps you were using one of those? I BTW recall testing XFCE some time ago in some live distro - don't remember which one - and it also seemed to have solved the issue somehow, while the MATE DE in the same distro did not.

Could Kwin somehow incorporate the patch from the bugtracker without requiring a modified version of XKB?
Comment 18 Yonatan Avhar 2022-09-21 10:51:46 UTC
This issue is still present with kwin 5.25.5 on Wayland, where the patched XOrg packages would not be helpful. Could there be a way to patch KWin on Wayland to work around this?

This bug has existed in X for over 20 years (see Bug 59303), maybe it's time to get it fixed once and for all?
Comment 19 fanzhuyifan 2024-04-11 16:48:08 UTC
The default layout switching shortcuts are handled by xkb, and not by kwin. If you assign newly supported modifier-only shortcuts as an alternate shortcut for layout switching, they won't interfere with other shortcuts.