SUMMARY Global shortcuts for KWin zoom effect are ⌘+ and ⌘-. Meanwhile, Desktop Grid handle + and - keys to add and remove virtual desktops, disregarding and held modifiers. Thus, trying to zoom in and out while the Desktop Grid is open leads to unintentional creation/removal of virtual desktops. STEPS TO REPRODUCE 1. Open Desktop Grid 2. Press ⌘+, then ⌘- OBSERVED RESULT One additional virtual desktop is created then removed. EXPECTED RESULT Robust / regular shortcut handling in KWin effects instead of these ad-hoc Keys.on*Pressed solutions. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.3 Kernel Version: 6.11.2-arch1-1 (64-bit) Graphics Platform: X11
Can't reproduce on Wayland. Virtual desktops only get created and removed with + and +, not Meta plus those keys. Seems like an X11-only bug. That said, using modifier-less shortcuts to add and remove (especially remove) desktops in an unmmarked way isn't ideal either.
I reproduced on both, it matters where your focus is within Overview
edit, I couldn't reproduce on wayland I had a broken meta key at the time