Bug 454971

Summary: Alt+Tab cycles in reverse order on wayland if caps lock is active
Product: [Plasma] kwin Reporter: lucasiregistraaisiti
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: 5.24.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description lucasiregistraaisiti 2022-06-07 12:29:05 UTC
STEPS TO REPRODUCE
0. Make sure the shortcuts for the task switcher (System Settings -> Window Management -> Task Switcher) are set to Alt+Tab (forward) and Alt+Shift+Tab (reverse), and that Caps Lock is disabled
1. Hold Alt and tap Tab a couple of times
2. Enable Caps Lock
3. Hold Alt and tap Tab a couple of times

OBSERVED RESULT
In step 3, from the second Tab press onwards the task switcher stars cycling between windows in reverse order

EXPECTED RESULT
The task switcher should cycle in forward order

SOFTWARE/OS VERSIONS
Distro: openSUSE Tumbleweed 
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This can also be reproduced on a fresh Kubuntu 22.04 install (after `apt install plasma-workspace-wayland`), so it shoudn't be an openSUSE-specific configuration issue.
Note that this only happens if the Task Switcher reverse order shortcut is set to Alt+Shift+Tab, setting it to any other combination (I tried Alt+G) or clearing it restores the correct behaviour.
Comment 1 Nate Graham 2022-06-07 17:00:44 UTC

*** This bug has been marked as a duplicate of bug 453918 ***