batrashish
Posts: 26
Joined: Sat Feb 08, 2014 6:17 am

How to Disable Right Mouse button

Sat Sep 20, 2014 6:46 am

Hello,
Could any one help me in disabling the right mouse button in raspberry pi.


Thank you in Advance.

Regards,
Ashish

User avatar
jojopi
Posts: 3616
Joined: Tue Oct 11, 2011 8:38 pm

Re: How to Disable Right Mouse button

Sat Sep 20, 2014 7:03 am

Code: Select all

sudo apt-get install x11-xserver-utils
xmodmap -e "pointer = 1 2 0"
At a guess, though, you are trying to restrict access to a context menu in a browser or some other application. That is unlikely to be successful because of keyboard shortcuts and other ways of accessing the same functions.

batrashish
Posts: 26
Joined: Sat Feb 08, 2014 6:17 am

Re: How to Disable Right Mouse button

Sat Sep 20, 2014 7:40 am

Thank you for your input.
This is exactly what I was looking for.

Best Regards,
Ashish

Return to “Advanced users”