FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.37k stars 825 forks source link

request options for disabling mouse side buttons #866

Open RagglenLove opened 3 years ago

RagglenLove commented 3 years ago

I've experienced this many times in FreeTube, when I'm browsing through the comments for example, or selecting a timestamp on the video itself, I would accidentally press one of the side buttons on the mouse with my thumb. Pressing the side button on a gaming mouse is equivalent to pressing the back button on a web browser.

So, I'm requesting an option to disable a mouse's side buttons.

TT-IRIS-Optical-RGB-gaming-mouse-sideview

GilgusMaximus commented 3 years ago

This could be added with the custom hotkey rework later on. If we now remove it, other people would request it to be added again

RagglenLove commented 3 years ago

I didn't mean remove the functionality of the side buttons permanently, what I meant was disabling the side buttons as a option in settings.

Now, I'm not sure how it works with Chromium, correct me if I'm wrong, because I think FreeTube is based on Chromium. In Firefox, there's a option in about:config to disable a mouse's side buttons, setting mousebutton.4th.enabled and mousebutton.5th.enabled to false disables the side buttons, is there an option like this in Chromium?

GilgusMaximus commented 3 years ago

Not by default as I found here.

But as I mentioned, when we do a major rework of the hotkeys and buttons, then this will come along with it. If someone wants to implement it right now, we are open for PRs. This should be rather easy in theory, but as discussed in the issue above, different operating systems might handle things differently (can also be seen in #848 ). So this must be taken into account.

For the moment I'd suggest trying not to press the button if you do not want to go back,