Bug 396787

Summary: Unable to set mouse gesture button to higher number than 10
Product: [Applications] systemsettings Reporter: Jan Pavlicek <jan.pavlicek>
Component: kcm_khotkeysAssignee: Michael Jansen <kde>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: justin.zobel, qydwhotmail
Priority: NOR    
Version First Reported In: 5.13.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Pavlicek 2018-07-23 08:34:55 UTC
Hello,

this bug might be related to 357389 - different issue but possibly the same cause.

In the dialog for Custom Shortuct, where Mouse button for gestures is defined, it is not possible to set a higher number than 10. This is somehow limiting, since there are number of mice that use numbers higher than 10 for their buttons, some of which could be usefull as the gesture trigger. (for example a Logitech Performance MX, which I own and tested this with, uses the number 13 for the zoom button located on the side) It is not a major problem for me peronaly, but it would be nice to be able to set higher number buttons instead of the "back" button I use now, which can interfere with its normal functionality.

AFAIK, this issue is persistent from early versions of Plasma 5, maybe even 4.

Thanks for looking into this and have a nice day!
Comment 1 Justin Zobel 2020-11-19 06:13:22 UTC
Thanks for the report Jan. Unfortunately my mouse doesn't have more than 10 buttons to test this.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 2 Jan Pavlicek 2020-11-19 08:22:44 UTC
(In reply to Justin Zobel from comment #1)
> Thanks for the report Jan. Unfortunately my mouse doesn't have more than 10
> buttons to test this.
> 
> Can you please test and confirm if this issue is still occurring or if this
> bug report can be marked as resolved. I'm setting status to "needsinfo"
> pending your response, please change back to "reported" or "resolved" when
> you respond, thanks.

Hi Justin,

I have meanwhile switched to a different mouse that does not have as many buttons. But I should still have the old one lying around somwhere, so I will try to find it, test the issue and share the result.

Thanks!
Comment 3 Jan Pavlicek 2020-11-20 14:44:07 UTC
Hello,

I was able to test the behavior today and unfortunately the result is still the same - the spinbox in the system settings dialog (Shortcuts -> Custom Shortcuts -> Mouse button) is limited to 10 and it is impossible to fill in a larger integer. It might be possible to achieve this by editing some config file directly, but I have not tested that (I do not know where this particular setting is stored).

$plasmashell -v
plasmashell 5.20.3

I am running Archlinux and I have updated yesterday, so I should have fairly recent versions of any plasma related packeges.

Thanks and have a nice day!
Comment 4 Justin Zobel 2020-11-21 04:54:57 UTC
Thanks for the update, I'm happy to set this to confirmed as I cannot test. Hopefully, this can be fixed up soon.
Comment 5 Fushan Wen 2021-11-03 14:10:34 UTC
It's hard-coded in gesture.cpp.
Comment 6 Nate Graham 2024-03-04 19:42:01 UTC
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now.

Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again.

Thanks for your understanding, everyone.