Disable mouse right-click?

For general discussion of the Poker Mavens software
Post Reply
navels
Posts: 24
Joined: Fri Mar 17, 2017 11:19 am

Disable mouse right-click?

Post 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.
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: Disable mouse right-click?

Post by Kent Briggs »

Not that I know of unless you can find a browser extension with that function.
navels
Posts: 24
Joined: Fri Mar 17, 2017 11:19 am

Re: Disable mouse right-click?

Post by navels »

What do you think about providing the option in the client?
navels
Posts: 24
Joined: Fri Mar 17, 2017 11:19 am

Re: Disable mouse right-click?

Post 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 });
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: Disable mouse right-click?

Post 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.
navels
Posts: 24
Joined: Fri Mar 17, 2017 11:19 am

Re: Disable mouse right-click?

Post by navels »

I sometimes click it on accident :-)
Post Reply