Is there any keyboard short-cut or key for Mac to make mouse right click? It feels me very frustrating to touch the mouse every time to view options. Is there any way like windows option key?
Added image for more details.
I don't know any way to show a context menu for items selected with the keyboard like what the menu key does in Windows.
To assign a keyboard shortcut for performing a secondary click at the current coordinates of the pointer, you can either:
Use a private.xml like this with Karabiner:
<?xml version="1.0"?> <root> <item> <name>Right Mousebutton</name> <identifier>rightMouseButton</identifier> <autogen>__KeyToKey__ KeyCode::OPTION_R, PointingButton::RIGHT</autogen> </item> </root>
Use Keyboard Maestro:
For difficulties using the mouse, you can turn on Mouse Keys: Located in System Preferences > Universal Access > Mouse tab.
As it states "Use the Keyboard in place of the mouse". Also several options are available to choose from that may meet your needs.
Apple's support notes for each OSX version have more information:
If you can't enable it in the first method, use the second method.
Go to System Preferences > Accessibility, find Mouse & Trackpad, then enable "Mouse Keys". If you want, go to the options menu and enable "Press the Option key five times to toggle Mouse Keys".
Press Option-Command-F5, and a window will pop up. Select "Enable Mouse Keys".
To right click press Fn-Ctrl-I. Sometimes you might want to turn Mouse Keys off as some keys on your keyboard won't function properly. If you are using an external keyboard, just find the equivalent to the function key. To map keys on a Windows keyboard with a Mac, visit this guide.
There is some builtin feature you can access by System Preferences -> Keyboard -> Shortcuts -> Keyboard (sorry I have the german OS X installed so this is my rough translation).
There you can find a keyboard shortcut called "Focus to menubar" (my shortcut is set to CTRL-F2.
Activate it, select the file and hit the shortcut keys, then you get the keyboard focus on your menubar. Navigate with the cursor keys to the "Services" menu, select the service and hit Enter.
Voila, the service is executed on the selected file
Here's a solution using Automator and Python. It's a bit slower than a real mouse (~0.5 second delay), but it works and requires no third-party software.
Open Automator and create a new service:
Choose Service receives
no input in
any application .
Search for "shell" and drag the "Run Shell Script" action to the storyboard:
Paste the following code into the Run Shell Script action:
from Quartz.CoreGraphics import CGEventCreateMouseEvent, kCGMouseButtonRight, CGEventPost, kCGHIDEventTap, CGEventCreate, kCGEventRightMouseDown, kCGEventRightMouseUp, CGEventGetLocation def mouseEvent(type, posx, posy): theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonRight) CGEventPost(kCGHIDEventTap, theEvent) event = CGEventCreate(None) position = CGEventGetLocation(event) mouseEvent(kCGEventRightMouseDown, int(position.x), int(position.y)) mouseEvent(kCGEventRightMouseUp, int(position.x), int(position.y))
Save the service (cmd+s). Use a descriptive name like "Perform a right-click".
System Preferences → Keyboard → Shortcuts → Services.
Look for your service (it should be near the bottom of the list) and assign a keyboard shortcut.
You should now be able to use your shortcut to perform a right-click.
Install Karabiner. If you are running MacOS 10.8, you will have to choose
KeyRemap4MacBook-8.4.0 (accessible from the main page).
Since I am testing it on Yosemite, I will give you screen capture and results which are tested on this version of MacOS. This answer might not work on Lion (if this is the case, signal it ASAP).
Open Karabiner preferences from the Menu bar drop down menu:
Scroll down to the settings group for
Change Option_R Key:
and open it.
Activate it and close the Karabiner preferences window.
Check it, and confirm if it fails or works.
In Mojave, simply two finger click on the trackpad will generate right click effect, such as spell check over red squiggly lines words on text to correct the spelling.