Bug 473109

Summary: Add ability to use mouse shortcuts (modifiers/no modifiers + click/double-click/ back/forward button/wheel up/down)
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: Andrew Shark <ashark>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: kdebugzillamail, major-mayer, mksybr, nate
Priority: NOR    
Version First Reported In: 6.11.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of PyCharm mouse shortcut creation window

Description Andrew Shark 2023-08-07 13:02:14 UTC
Created attachment 160796 [details]
Screenshot of PyCharm mouse shortcut creation window

If you ever used jetbrains IDE, such as PyCharm, you can see it allows you to use mouse shortcuts. It is a very nice feature. It allows you to assign mouse buttons/wheel and maybe with some modifiers. See screenshot.
Examples of possible shortcuts:
Wheel up
Alt+Wheel up
Alt+Shift+Wheel up
Alt+Click
Alt+Double Click
Alt+Double Right-Click
Button 5 Click

It would be nice to have such feature in kde applications (and for global shortcuts).

Such feature may resolve:
Bug 343421 - Ability to set mouse wheel as global shortcut component
Bug 156082 - Activate zoom effect with Meta+mouse wheel

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Actually, I want to switch desktops with Meta + wheel up/wheel down.
In system settings, in Window Management -> Window Behavior -> Window Actions -> Inner Window, Titlebar and Frame Actions, I see there is interesting possibility to assign Meta/Alt + mouse wheel.
Unfortunately, this only works inside a window. Also, you cannot specify your own (random) action there, but only choose from dropdown list. And there is a move to prev/next desktop, but this action moves the window, while I want to just switch desktop without moving window there.
Comment 1 Silk 2025-02-26 22:16:09 UTC
As the GlobalShortcuts is rolling out to applications slowly now, I want to be able to use mouse buttons to mute my microphone in conference calls. Please consider allowing this, as the XDG shortcuts spec doesn't disallow mouse buttons.
Comment 2 Malik Kennedy 2025-10-16 17:53:49 UTC
There is already similar a UI in System Settings - Mouse for configuring extra buttons, it would be nice if it could be reused in the keyboard shortcut menu. I agree that this would be a useful addition.
Comment 3 major-mayer 2025-11-05 20:14:55 UTC
I believed the (in my opinion prematurely) closed bug about this topic was this one targeting systemsettings - kcm_keys: https://bugs.kde.org/show_bug.cgi?id=171295. However, if KGlobalAccel is actually responsible for handling these bindings, I would strongly support adding mouse/button/wheel support there instead.

My keyboard has no dedicated volume keys; I’d like to use Meta + scroll wheel to adjust volume.

I want to bind mouse buttons and the scroll wheel directly to actions, without first mapping them to custom key combinations. The current "Assign additional mouse buttons" dialog forces that extra step and is quite cumbersome.