Bug 465969

Summary: Setting meta as shortcut for any action will trigger that action even when meta is used in key combination
Product: [Plasma] kwin Reporter: Natalie Clarius <natalie_clarius>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, kde, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Natalie Clarius 2023-02-17 23:05:19 UTC
SUMMARY
***
When setting only the meta key as a shortcut for anything, any key combination involving the meta key will also trigger the modifier-only shortcut in addition to the actual key combination.
***

STEPS TO REPRODUCE
1. Assign just the meta key to any action (call it A)
2. Assign meta + some other key to any action (call it B)
3. Trigger the key combination for B

OBSERVED RESULT
A and B happen

EXPECTED RESULT
Only B happens

Operating System: Arch Linux 
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Aleix Pol 2023-02-20 11:57:53 UTC
I guess then it's a matter for these shortcuts to be triggered on release. At the moment we do it on press and we do not yet know whether there will be other keys pressed afterwards.
Comment 2 Aleix Pol 2023-02-20 11:58:17 UTC
It's the other side of the coin of https://bugs.kde.org/show_bug.cgi?id=465867
Comment 3 Nate Graham 2023-02-22 02:03:05 UTC
I think it's time to remove the modifier only shortcut concept from KWin, now that it's redundant because we can trigger modifier-only shortcuts using KGlobalAccel.