Bug 452113

Summary: alt+space shortcut triggers krunner and main menu of Opera browser at the same time when pressed by the first time after login
Product: [Plasma] kwin Reporter: Patrick Silva <bugseforuns>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde, nate, oded
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=464805
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screen recording

Description Patrick Silva 2022-03-31 14:26:34 UTC
Created attachment 147861 [details]
screen recording

SUMMARY
Can reproduce on Wayland (regardless Opera runs on Xwayland or natively on Wayland) and X11.
When I open Opera browser after login and then press alt+space, the main menu of Opera (whose shortcut is ALT) and krunner are triggered at the same time. Only krunner is triggered if alt+space is pressed again.

STEPS TO REPRODUCE
1. have Opera browser installed - .deb and .rpm packages are available on https://www.opera.com/download
2. login
3. open Opera
4. press alt+space

OBSERVED RESULT
main menu of Opera and krunner are triggered at the same time. Please watch the attached screen recording.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Can reproduce on Arch Linux running Plasma 5.24.4 too.
Comment 1 Patrick Silva 2022-03-31 14:27:58 UTC
EXPECTED RESULT
alt+space should never trigger krunner and main menu of Opera at the same time
Comment 2 Patrick Silva 2022-10-15 16:51:30 UTC
Can also reproduce similar bug with Thunderbird and Firefox when their menu bars are hidden.

1. login
2. open Thunderbird or Firefox
3. make sure the menu bar of the used app is hidden
4. invoke krunner by pressing press alt+space

Result: the menu bar of the used app is activated and krunner is invoked at the same time

Operating System: Arch Linux
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 3 David Edmundson 2023-05-04 08:32:36 UTC
We have no choice on this from a kwin perspective. The client won't get alt+space as that's intercepted properly, but if you press alt first they'll get an alt event. We can't delay sending modifiers (alt) as that would break many many more clients. 

Locally you can choose different shortcuts for krunner.
Switching krunner to meta space for Plasma 6
Comment 4 Oded Arbel 2023-05-25 13:33:47 UTC
I cannot reproduce on Plasma 6 - both Firefox and Opera open their menus on ALT release, and only if no other key was pressed.