Bug 513450

Summary: Alt and Meta modifiers have different keyup behaviors in Window Actions
Product: [Plasma] kwin Reporter: karltacheron
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdedev
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description karltacheron 2025-12-16 18:02:35 UTC
SUMMARY
The Window Actions mouse modifiers have a discrepancy where releasing the mouse button before the modifier exhibits different behavior between Meta and Alt. If using Alt, it will be fired on keyup. If using Meta, it is intercepted on keyup and doesn't fire. This issue does not occur if Alt is released before the mouse button.

 The issue is highly visible in Firefox, where pressing Alt unhides the menu bar. In other applications it will focus the menubar, so for example, in Okular, after keyup of Alt pressing "F" should open the File menu.

STEPS TO REPRODUCE

1. In System settings > Window management > Window Actions, set the "Inner Window, Titlebar, and Frame Actions", set the modifier to Alt
2. Start to use any of these modifiers on any application with a menu bar
3. Release the mouse button, then release Alt (Alt is fired and menubar will be focused)
4. Repeat steps using Meta as modifier to see the interception of Alt's keyup

OBSERVED RESULT
Alt is fired. 

EXPECTED RESULT
Alt should be intercepted.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1