Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Support XButton1 and XButton2 #15948

Closed
maurerle opened this issue Jun 28, 2021 · 4 comments · Fixed by #17786
Closed

[Enhancement] Support XButton1 and XButton2 #15948

maurerle opened this issue Jun 28, 2021 · 4 comments · Fixed by #17786

Comments

@maurerle
Copy link
Contributor

Enhancement Description

My Mouse has two extra buttons, Forward and backward (for example in a browser).
The related Keyboard-Events are XButton1 (Back) and XButton2 (Forward).

I'd expect them to issue the same event as the ALT+Left or ALT+Right Key-Combination does.
This would improve source code browsing a lot.

Thanks!

@steff456
Copy link
Member

Hi @maurerle,

Have you tried to add this combination under Preferences > Shortcuts, you can bind those keys to do whatever you want. Please try it and let me know how it goes.

@maurerle
Copy link
Contributor Author

maurerle commented Jun 28, 2021

Hi, this didn't work out.
The MouseButtons are currently not recognized by Spyder

A Code Example of the requested functionality can be seen here in a Python QT Browser:
https://github.com/qutebrowser/qutebrowser/blob/4c479bb4ab9a25276ea9045c99b690dc925dd345/qutebrowser/browser/eventfilter.py#L247

Those should be an alias for "next cursor position" respectivley "previous cursor positon"

@skjerns
Copy link
Contributor

skjerns commented Sep 23, 2021

I think this would be great! I would also love to use my extra mouse buttons for prev/next cursor position

@ccordoba12
Copy link
Member

@skjerns, this doesn't seem hard to implement. Do you want to give it a try?

maurerle added a commit to maurerle/spyder that referenced this issue Apr 28, 2022
@dalthviz dalthviz added this to the v5.3.1 milestone Apr 29, 2022
dalthviz added a commit that referenced this issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants