Page 1 of 1

Disable mouse right-click?

Posted: Fri Jun 23, 2023 1:33 am
by navels
Is there anything I can do to prevent my right mouse button from acting like a normal click? I want the left button (normal click event) to do all the things, not both buttons.

Re: Disable mouse right-click?

Posted: Fri Jun 23, 2023 9:25 am
by Kent Briggs
Not that I know of unless you can find a browser extension with that function.

Re: Disable mouse right-click?

Posted: Fri Jun 23, 2023 1:10 pm
by navels
What do you think about providing the option in the client?

Re: Disable mouse right-click?

Posted: Fri Jun 23, 2023 1:32 pm
by navels
Btw this does it, just need to use a chrome extension that will run javascript when visiting specific sites, there are plenty:

Code: Select all

window.addEventListener('mousedown', function (event) {
  if (event.button != 0) {
    event.stopImmediatePropagation();
  }
}, { capture: true });

Re: Disable mouse right-click?

Posted: Fri Jun 23, 2023 2:03 pm
by Kent Briggs
navels wrote: Fri Jun 23, 2023 1:10 pm What do you think about providing the option in the client?
Why is it an issue for you? Just don't use the right button.

Re: Disable mouse right-click?

Posted: Fri Jun 23, 2023 10:46 pm
by navels
I sometimes click it on accident :-)