Bug 494579

Summary: 6.2.0 causes Shift+Alt (but not Alt+Shift) to trigger Meta modifier-only shortcut
Product: [Plasma] kwin Reporter: RedBearAK <redbear>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: ad.liu.jin, arttucasper, jlp, Jmvars94, kde, pepko94
Priority: NOR    
Version: 6.2.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description RedBearAK 2024-10-12 02:40:07 UTC
SUMMARY

Some Arch users were talking about (and confirming) this phenomenon on Reddit: 

https://www.reddit.com/r/kde/comments/1g13943/a_keyboard_shortcut_i_cant_find_listed_in_the/

After updating my Fedora 40 system to Plasma 6.2.0, the same issue is present for me, if I have the "Meta" modifier-only shortcut enabled. If that shortcut is enabled, pressing Shift+Alt (but not Alt+Shift) will also trigger the same shortcut action. 

Moving the Meta-only shortcut to something other than the app launcher, like krunner, shows that Shift+Alt (but not Alt+Shift) will always trigger the Meta-only shortcut action, regardless of what it is set to. So it's not connected to the app launcher, the Shift+Alt modifier sequence just somehow triggers the Meta-only shortcut action. 

Disabling the Meta-only shortcut will stop the Shift+Alt sequence from doing anything. 

For the action to happen you have to press Shift+Alt and then release with no further keys. Other shortcuts involving Shift+Alt+key seem to work correctly. 

Trying to set "Shift+Alt" as a modifier-only shortcut results in the Input box showing that you pressed "Meta+Shift", and on occasion I would get the dialog saying "Meta+Shift" is assigned to the action I was trying to assign "Shift+Alt" to. If I press "Alt+Shift" instead, the Input box would just show that I pressed "Alt+Shift". 

If you actually try to use the resulting "Meta+Shift" shortcut, you of course need to actually press Meta and Shift. It doesn't work with "Shift+Alt". 

STEPS TO REPRODUCE
1. Update an Arch or Fedora (or any?) distro to Plasma 6.2.0
2. Make sure the Meta-only shortcut is enabled with some action.
3. Press "Shift+Alt" and release. The Meta-only action should be triggered. 

EXPECTED RESULT

The Shift+Alt sequence should not perform any action unless it was assigned to some action as a modifier-only key sequence shortcut. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40 Workstation with KDE Plasma 6.2.0
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Comment 1 Jin Liu 2024-10-12 03:24:06 UTC
Can confirm. And it only affects the modifier only shortcut. Shift+Alt+D doesn't trigger Meta+D. Shift+Alt+Click doesn't trigger Meta+Click.
Comment 2 Grenth 2024-10-12 19:34:27 UTC
I have this on EndeavourOS, KDE 6.2.0.

It was especially annoying in games where shift is sprint and alt is freelook, like DayZ and ArmA 3.
Comment 3 retired 2024-10-12 20:54:24 UTC
Yup, annoying in games, drops you right into desktop.