Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to right click where the focus is not where the mouse cursor is (eg. the blinking text cursor or on a file) using only the keyboard.

I've tried mouse keys and it right clicks at the mouse pointer, not the text cursor. I'm open to any 3rd party apps or services.

share|improve this question
Just to clarify, are you looking for functionality on OS X to open up the context menu similar to the Windows Menu key? – fideli Mar 2 '11 at 1:22
Most likely, all commands in the context menu are available from the menubar. Press Cmd-? to open Help menu's search field and type your command instead, or use Ctrl-F2 to move the focus to the menu bar and navigate to your desired action there. Or better, assign keyboard shortcuts to often used commands in System Preferences » Keyboard » Keyboard Shortcuts » Applications so you can access them directly. – Daniel Beck Mar 2 '11 at 6:44
For how the Help search field can work, see here. – Daniel Beck Mar 2 '11 at 6:57
up vote 1 down vote accepted

This is a common request of ex-Windows Keyboard Maestro users. Apparently there is a window key which will display a contextual menu based on the insertion point, but there is no equivalent behaviour on the Mac. It is impossible in general to get the screen location of the current insertion point (some applications may allow some method via AppleScript or Assistive services).

So there is no way to move the mouse pointer to the insertion location in general, and the contextual menus are based on the mouse pointer.

This is why Keyboard Maestro doesn't implement this, and without some low level hackery, it is almost certainly impossible.

So essentially you are out of luck. You will need to find an alternative solution to your issue.

share|improve this answer

There could be at least two ways to do it:

  • Using a direct action for opening the context menu
  • Moving the mouse pointer over the selected items or text, and then triggering a secondary click

But I haven't found a way to do either of those.

Applescript is pretty crappy at working with both selections and mouse stuff. Keyboard Maestro, iKey, QuicKeys or BetterTouchTool don't seem to have any way to do it either. Or MouseTools or XTool.osax. Or KeyRemap4MacBook.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .