98

Is there a keyboard shortcut for right clicking in Mac OS X?

If not, when using the built in spell check, is there a way to drive spelling correction via the keyboard?

Also if not, is there a third party application that can give you a keyboard shortcut that allows to you right click?

If your answer is "press control while clicking the main mouse button", you're not paying attention.

Loïc Wolff
  • 2,044
  • 15
  • 14
Alana Storm
  • 1,717
  • 2
  • 17
  • 19
  • What do you mean by a keyboard shortcut? As in, a key combination that can simulate a right-click at the location of the cursor? – Sasha Chedygov Jan 10 '10 at 19:37
  • Yes, exactly that. Ubuntu and Windows both have this, and I"m curious if it's available in Mac OS X, specifically for the use case of using cmd-; to jump to the next misspelled word, invoke this shortcut, select the right spelling, and then move to the next. – Alana Storm Jan 10 '10 at 19:49
  • Try this: http://superuser.com/questions/93561/right-click-using-keyboard – fideli Jan 10 '10 at 20:25
  • 1
    You can kinda do this with https://www.alfredapp.com/ `Shift+Alt+leftarrrow` to highlight word. `CTRL+X` to cut, `CTRL+Space` then type "spell " to paste word into alfred, and `enter` assuming the 1st match is correct it will copy it to your clipboard. Then you can paste over the current word in your current text edit with `CTRL+V` – lacostenycoder Dec 18 '17 at 16:11

4 Answers4

36

Right Click via Keyboard

  • Activate “Mouse Keys” (in System Preferences, search for “mouse keys”, turn it on).
  • Position the mouse cursor.
  • Hold Control.
  • Press and release the keypad's 5 key.
  • Release Control.

Spell Check via Keyboard

There are standard shortcuts for the built-in spell checking. Not all applications may have these menu items.

  • ⌘; — Edit > Spelling > Check Spelling
    • This selects the next ‘misspelled’ word.
  • ⌘: — Edit > Spelling > Spelling…
    • This selects the next ‘misspelled’ word and opens the Spelling floating window.
    • To focus the floating window without using the mouse, you can use the “full keyboard access” shortcuts (enable them in System Preferences, search for “full keyboard access”, it (and the extra shortcuts it enables) are under the “Keyboard Navigation” subtree.
      • You may need to reassign the shortcuts.
      • The default for “move focus to the floating window” is ⌃F6, but that seems to be used by the editor here on SO, so I needed to change it to test it while composing this answer (I used ⌥F6).
      • Once focus is on the Spelling floating window, you can
        • dismiss it with Escape, or
        • use Tab to move to the various controls, and
        • with the replacement textbox focused, you can
          • use Up and Down to select replacements, and
          • type a replacement, and
          • use Return to activate the default button: Correct
Chris Johnsen
  • 39,401
  • 6
  • 111
  • 111
  • 17
    Warning: You probably don't want to activate Mouse Keys on a Mac without a separate numpad (e.g. MBP) as it disables the rest of the keyboard! – xyz Jul 25 '10 at 15:41
  • 5
    so what do we do in a MBP? – Open the way Mar 21 '13 at 07:28
  • 2
    @flow: It seems fairly usable (on a MBA, anyway) if you enable the “Press the Option key five times to toggle Mouse Keys” option so that you can easily toggle between the modes (also **disable** “Ignore built-in trackpad when Mouse Keys is on”, so you do not lose your normal trackpad). The (QWERTY layout) keys `7` `8` `9`, `u` `i` `o`, and `j` `k` `l` form the directional “keypad” and yield the movements NW N NE, W *click* E, SW S SE (↖ ↑ ↗, ← *click* →, ↙ ↓ ↘). – Chris Johnsen Mar 21 '13 at 08:09
  • 1
    So, in 2019, on a Macbook, to right-click via the keyboard you: Press the touch ID button 3 times, move the mouse to click on "Enable Mouse Keys", click Done (or press return), hold `control` and press `i`. I was hoping for a shortcut that saved moving my hands to the trackpad, but this is nuts! – Mark McDonald Oct 23 '19 at 18:22
  • Great answer!! Behaves similar to windows "menu" key aka key number 0x76 – Tomachi Feb 12 '20 at 03:18
  • This is quite cumbersome - defeating the purpose of using (quickly) keyboard shortcuts – WestCoastProjects Oct 29 '20 at 15:54
  • **I just bring out my tongue and the job is done** you can do this in `Enable alternate pointer actions` -> `options` -> ⚙️ -> `Facial Expression` -> `next` -> and set `stick out Tongue` to `Right click` action -> done – TechDogLover OR kiaNasirzadeh Dec 09 '20 at 06:37
25

TL;DR: Ctrl+enter using Shortcat.

I have solved this problem using the free app (edit: it's free now, but looks like it will have to be purchased after the beta) Shortcat. It allows you to use the keyboard to move the mouse cursor to clickable parts of the screen. You type the clickable text of what you want to select, tab if necessary to the correct element, then hit enter to click. The same keyboard shortcuts that work when clicking work with enter, so to right click, just hit Ctrl+enter. By default, you activate shortcat by using cmd+shift+space. So to right click a text area in a browser (okay, in Chrome) and run spell check might look like this:

  • cmd+shift+space activates shortcat
  • Typing . highlights everything -- my text area of interest happens to be labeled 'AP'.
  • Type Ctrl+AP to select the text area. Alternatively, type .text then enter. (see tips below.)
  • shift+enter to right click Now we're done with shortcat, but to finish it off:
  • Type spell to select Spelling and Grammar from the context menu, then Space to drill in, and finally Space again to select.

It sounds complex, but it all takes a fraction of a second with a little practice.


A couple other tips for using shortcat:

  • To enable shortcat to work within pages in Chrome, go to chrome://accessibility and turn on Global accessibility mode at the top of the page (as of Chrome 33). I added this page to my bookmarks bar, so I can activate it without having to use the mouse.

  • Type . in the box to highlight all clickable areas, or narrow to .menu, .input, .button, '.text', or .link. There may be others, but those are the ones I have discovered.

  • To quickly maximize a Chrome window, I can type cmd+shift+p . tab shift+enter. Not elegant, but faster than reaching over to the mouse.

  • Every selectable element gets labeled with a letter or letters. You can go directly to an element at any time by holding down Ctrl and typing the letter combo it is labeled with.

  • Even graphical icons usually have some accessibility text by which they can be selected. For example, if I type apple Shortcat will select the apple menu, and if I type adium Shortcut will select the Adium icon in the menu tray.

There is a little bit of a learning curve, and sometimes there are controls that Shortcat can't find, so sometimes I still have to use my trackpad, but I've found it to be pretty useful and boost my productivity overall. It's infinitely faster than trying to move the mouse around with mouse keys.

Brian Mortenson
  • 349
  • 3
  • 6
5

TL;DR: Karabiner-Elements can do this.

I already use this to make a few other modifications, and found it can also handle this use case.

enter image description here

TMB
  • 661
  • 1
  • 7
  • 10
  • Thanks for this! I use Karabiner-Elements heavily, but hadn't thought of using it to right click. Now I just need to figure out how to get the mouse cursor to move to the text cursor before right clicking. – Brian Mortenson Jun 18 '19 at 18:35
  • 3
    @BrianMortenson this comment is more than a year later but you could checkout https://vimacapp.com/ With a shortcut (Control + Space by default) it will put short one or two-letter labels on all the interactive elements on your screen, then you type it and it will focus. – Cristian Sep 16 '20 at 16:05
  • 1
    @Cristian, thank you! I'll note that this works like Vimium (my favorite keyboard productivity hack ever) outside the browser, and that it supports right clicking by pressing shift while typing the shortcuts. If I can make a habit out of using it, with all my other keyboard hacks, I might be able to go days without ever having to fiddle with a mouse. – Brian Mortenson Sep 17 '20 at 20:01
2

Cross-posting an answer to a related question: this worked on macOS Catalina and I just verified that it works on macOS Monterey.

System preferences -> Accessibility --> Pointer Control --> Alternate Control Methods -> Enable alternate pointer actions -> Options

Note that this only works when the cursor is already at the desired click location.

macOS alternate pointer actions options

victorlin
  • 131
  • 2