88

In Windows, one can hit Shift+F10 to access the "Context Menu." But a similar keyboard action doesn't seem possible on Mac. One potential application...

When I make a spelling error in a document, Lion gives me the option to correct the error by right-clicking (or ctrl-clicking, two-finger tapping, etc) on the misspelled word and bringing up the context menu.

enter image description here

How can I open this menu from the keyboard? And is it possible to access the Context Menu from a Mac keyboard?

16 Answers 16

47

I always have the same question but I didn't find the answer yet.

In Windows, when we use the keyboard short-cuts we mostly use the Menu key in Windows keyboard:

The Menu Key in Windows keyboard

When this Menu key is pressed, Windows will assume that you right-clicked the highlighted/active element > then it will show you the context menu even if the mouse pointer is not pointing to the highlighted element.

So this feature seems to be missing in Mac OS. And whatever suggested solutions, even Enable Mouse Key it always require you to point/move your mouse pointer to element first, which is meaningless. If I need to use the keyboard short-cut to open the context menu on the highlighted item, why do I need again to move the mouse pointer to it also. Somehow this is not a short-cut!!

| improve this answer | |
32
+50

The context menu can primarily be opened by a right mouse click only. But in the Universal Acces settings in the System Preferences we can control mouse keys by using the keyboard number pad. When activated, a right mouse click then can be achieved by Ctrl+5 on a keyboard with a numpad or Fn+Ctrl+i on a laptop. This will allow you to trigger a right-click, but at the spot the mouse cursor is hovering, not where your text cursor is.

Go to System Preference → Universal Access → Mouse → Enable Mouse Keys (ON): Go to System Preference → Universal Access → Mouse → Enable Mouse Keys (ON)

Found on: https://stackoverflow.com/a/11238186/1919382

| improve this answer | |
12

For Word 365 on Mojave, Shift+F10 does the trick. If you have a Touch Bar on your MacBook Pro, you would need to press the Fn key to bring up the function keys.

| improve this answer | |
4

You can use Better Touch tool to set up any tap/swipe/click/key combination to the right click.

| improve this answer | |
  • 5
    But it will just perform a secondary click at the current coordinates of the cursor, not show the context menu for a selection made with the keyboard. – Lri Dec 1 '11 at 22:29
  • You are right, there are options to call a url or script with the selected text, and I bet you can convince the developer to add this feature as well. – Ali Dec 2 '11 at 1:06
  • I have (and looooooove) Better Touch Tool, and the developer is a freakin' magician. But for this particular use case, I use Alfred, which is my only other indispensable Mac application, right after BTT. – Wildcard Sep 26 '16 at 11:10
4

Close to what you've asked, is to enable spelling auto-correction via:

and then stay with your cursor at the end of a mispelled word, so you'll get an iOS style correction-suggestion:

then with down-arrow and left/right-arrows you can choose the correct word.

| improve this answer | |
4

If you have "correct spelling automatically" checked and it doesn't seem to be working, it might be because you're trying it in an unsupported application. E.g., I can use the feature in TextEdit and Pages but not, e.g., FireFox or SublimeText 2 (two of my most used apps).

Tho I've spent way too much time looking, I haven't found any way of getting the suggested spellings from the context menu with the keys alone. The best option I've found so far is to use my thumb on the track pad to position the mouse and then hold ctl and tap (again with the thumb). It takes a bit longer because of the need for positioning, but at least I can keep my fingers on the home row.

I find it awkward to reach the ctl button, so I've used KeyRemap4MacBook (which is generally awesome and free) to customize the layout to make caps lock be ctl. KeyRemap will also let you assign ctl + click to button combinations, so you don't have to tap/click.

| improve this answer | |
4

Try press [fn]+[SHIFT]+[F10]

To me it seems that most windows on mac F-keys can be called this way.

Cheers!

| improve this answer | |
4

ALMOST SOLVED

I got this solution to work in some Applications (like Finder, TextEdit, Firefox, ...) but not others (like Outlook, Chrome, ... )

A 'context click' can be mapped to a key/key-combo using all native Mac OS X features (thanks to its NeXT/OPENSTEP heritage). However, the solution is pretty technical "under the cover" stuff, and it may take some trial-and-error to get it to work.

Read about Key Bindings here, and follow (some) of the instructions to create your own ~/Library/KeyBindings/DefaultKeyBinding.dict file.

Key Bindings map keys (or key-combinations) to "Responders" inside the Text System. I found the Responder for rightMouseDown here, and found the "magic string" for my desired target key (F13) from this url: osxnotes.net/keybindings.html

My ~/Library/KeyBindings/DefaultKeyBinding.dict looks like this

{
    /* Context Menu */
    "^\Uf710" = "rightMouseDown:";  /* Ctrl-F13 */
    "^;" = "rightMouseDown:";       /* Ctrl-; */
}

Now I should be able to hit either Ctrl-F13 or Ctrl-; to get the context menu.

NOTE: You will have to quit & relaunch an Application to have it pick-up changes. (Worked for TextEdit in 10.10) Otherwise, log-out & log-back in.

| improve this answer | |
  • Trying it out now. Even if it does not work this was interesting info. Will comment again on whether it works for me in Finder. – StephenBoesch Aug 25 '16 at 17:30
  • 1
    Unfortunately does not seem to work. Tried it in TextEdit on El Capitan. – StephenBoesch Aug 25 '16 at 17:33
  • This didn't work for me either. Unicode strings here in case you wanted to try other combos. – George C Jan 11 at 19:35
3

I use Alfred with RightClick workflow.

I mapped Option+CMD+Enter to trigger a right click in the frontmost application.

RightClick used to work only in Finder but it was improved to work in most applications.

| improve this answer | |
  • 1
    Or just use the File Actions feature, which is built into Alfred directly rather than requiring an extra workflow install. Either way you'll need to purchase the Powerpack. – Wildcard Sep 26 '16 at 11:12
  • 1
    @Wildcard. It's different than file action feature. RightClick is a global shortcut that triggers a rightclick in the current application through applescript. File action feature requires you to open the search bar, search for a file then choose a file action. – jrobichaud Sep 26 '16 at 12:01
  • Has some delay before menu appears, but it's the best solution I've found! Works also in Forklift. – Pavel Alexeev Nov 12 '17 at 14:55
2

I feel your pain.....Best work around I've found is on cnet. Haven't tried it yet but I plan to. Unlike a true contextual menu, this does require you look to the top-left for the commands you seek, but may still suffice to bring you the functionality you are looking for. http://www.cnet.com/news/access-menus-via-the-keyboard-in-os-x/

| improve this answer | |
2

To bring up the spell check use cmd + :.

| improve this answer | |
2

For spellchek(and more) I'm use popClip + alfred workflow Ppay

| improve this answer | |
2

Cmd+Shift+: Opens “Spelling & Grammar” on Chrome for me with El Capitan. It’s a clunky bodge but I can now spell check.

| improve this answer | |
  • Well done @ib. Getting the + between key caps instead of a hyphen is chef’s kiss awesome. – bmike Nov 14 at 22:23
1

Here is my solution on Github. This is a little AppleScript that I wrote making a control-click that you can assign to key of your choice using a shortcut utility app of your choice.

| improve this answer | |
1

On my setup (external PC-style keyboard, Karabiner Elements, and single application I care about), I remapped a PC Menu key (Karabiner sees it as "application") to Keypad Numlock.

The application (CLion) has hotkey remapping ability and supports context menu for focused controls, so I mapped the key in the application.

| improve this answer | |
0

shift+F10 can be used in many Microsoft apps.

also, if you are using remote desktop of Windows on Virtual Machine this shortcut is very handy.

| improve this answer | |

You must log in to answer this question.

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