Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
1  
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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.