STEPS TO REPRODUCE 1. Assign a modifier-only shortcut to something 2. Assign the same modifier-only shortcut to something else OBSERVED RESULT The old shortcut is triggered when binding the new shortcut. EXPECTED RESULT The old shortcut shouldn't be triggered. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux (available in About System) KDE Plasma Version: 6.1 KDE Frameworks Version: Qt Version: 6.8 ADDITIONAL INFORMATION This also happens during lock screen, which poses a security issue (e.g., see BUG 488268)
I am unable to reproduce this. The way I tried this was: 1. Add CTRL shortcut to launch dolphin 2. Add CTRL shortcut to launch konsole When reassigning CTRL to konsole it did **not** open dolphin. Anything I am missing here? Operating System: Arch Linux KDE Plasma Version: 6.1.80 KDE Frameworks Version: 6.5.0 Qt Version: 6.9.0 Kernel Version: 6.10.2-arch1-1 (64-bit) Graphics Platform: Wayland
(In reply to duha.bugs from comment #1) > I am unable to reproduce this. > > The way I tried this was: > 1. Add CTRL shortcut to launch dolphin > 2. Add CTRL shortcut to launch konsole > > When reassigning CTRL to konsole it did **not** open dolphin. > > Anything I am missing here? X11. Things work perfectly on wayland
Ah, sorry I missed that. Can confirm on X11.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/60
Git commit d5be3e16b9e2921c88cc8e0181a5b1f2c13ad761 by Yifan Zhu. Committed on 09/08/2024 at 01:50. Pushed by fanzhuyifan into branch 'master'. plugins/xcb: skip xrecord events when keyboard is grabbed Otherwise modifier-only shortcuts still trigger when keyboard is grabbed by some other client, e.g. during shortcut assignment and in lockscreen. Keep track of keyboard grab state by listening to grab/ungrab requests. Test plan 1: - Under x11, in system settings, assign Meta to some shortcut. - Assign meta to another shortcut - Verify that the old shortcut does not trigger Test plan 2: - Under x11, choose multiple keyboard layouts - assign Alt+Shift as alternate layout switching shortcut - lock screen - press Alt+Shift - Verify that the layout change OSD pops up, and typed password uses the new layout - repeat the last two steps Related: bug 488268 M +16 -0 src/plugins/xcb/kglobalaccel_x11.cpp M +1 -0 src/plugins/xcb/kglobalaccel_x11.h https://invent.kde.org/plasma/kglobalacceld/-/commit/d5be3e16b9e2921c88cc8e0181a5b1f2c13ad761