[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I right click on a Mac?




Since Mac's only have one button how do I right click?

the default mouse only has one button... but you can get multi-button mice for Mac :-). They've been supported ever since Mac OS 8 at least :-D


Michael D. Crawford wrote:

The least painful solution is to get a three-button mouse, but until then, you need to enable mouse button emulation, and then choose keyboard keys to use instead of mousebuttons.

I use F1 for the middle key and F2 for the right. Those are probably not the best choices, as there are applications that need F1 and F2 for their own purposes. But to illustrate:

$ su
# cd /proc/sys/dev/mac_hid
# echo 59 > mouse_button1_emulation
# echo 60 > mouse_button2_emulation
# echo 1 > mouse_button_emulation

Keycode 59 is F1, 60 is F2.  The "echo 1" enables the emulation.

(This was all from memory, I'm not sure it's exactly right.)



You'll have to do that each time you reboot though; To make it permanent add the following to /etc/sysctl.conf file (For F10 as middle click and F11 as right click, which I use)
|
dev/mac_hid/mouse_button_emulation = 1
dev/mac_hid/mouse_button2_keycode = 68
dev/mac_hid/mouse_button3_keycode = 87


Note that this is a little different than Mac's control-click feature, as in the above example hittng "F11" will right-click with no input from the mouse, rather than the click coming from a combination of the mouse click and keyboard modifier. 'course you've probably already figured that out :-D

Cheerio!

SigmaX
|



Reply to: