Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Many user interface (UI) elements or dialog boxes have buttons. I would like to be able to select a button with just the keyboard, without the mouse. How can I do this?

share|improve this question

6 Answers 6

up vote 31 down vote accepted

For many dialog boxes you can select the option you want by pressing +firstletter where firstletter is the first letter of the option you want to select

share|improve this answer
2  
Cooool!!! +1! I had no idea. –  Harv Jan 29 '11 at 22:33
    
I haven't been able to get this to work once. What dialog boxes support this? What percentage of the time does this work for you given all the apps you use? –  user588 Feb 13 '11 at 20:38
    
@mankoff Try it while carrying out what the original question asked and it works –  conorgriffin Feb 13 '11 at 20:49
    
I have "warn when changing" unselected so I never come across that dialog. In testing, CMD+K (keep) doesn't seem to work for me, only CMD+U (use). This answer, while useful when it works, seems to be only partially and occasionally valid. –  user588 Feb 13 '11 at 20:59
3  
This doesn't work more often than not in my experience. –  fredley Oct 31 '11 at 10:59

Enable Keyboard Control of the UI

System Prefs > Keyboard

Then select "All Controls" button at the bottom, rather than just "Text boxes and lists only"

enter image description here

Keyboard Shortcuts

  • (TAB) will move between buttons.
  • esc (ESC) is cancel.
  • space (SPACE) selects the active button (blue, outline).
  • (RETURN) is OK or the default button (blue, pulsing, filled).
  • For some dialog boxes, +first_letter will select the button with a certain first letter in the text (as pointed out by @Griffo).
share|improve this answer
    
Is this still applicable to Mavericks? –  Jayden Lawson May 13 at 7:09
    
@JaydenLawson Yes, can confirm it's working on Mavericks. I don't know about Yosemite –  Mohsen Jun 28 at 2:25
    
It is actually under the "Shortcuts" tab. System Perfs > Keyboard > Shortcuts –  Chris Watts Aug 27 at 17:22

To elaborate on the answers above, many (most?) dialogue boxes will have the default option in blue. Hitting will cycle between options, with a blue outline around the other button, but the default will remain blue. Hitting will always select the default, space will select whichever button is highlighted.

In this example, pressing will 'Keep .txt' and pressing space will 'Use .bak.'

Dialogue Box

share|improve this answer

+. also works for Cancel. And in some applications just pressing the initial letters works. Photoshop is one, but it's pretty common for other cross-platform applications too.

Typing +W+D is a quick way to do something like Close and don't save.

share|improve this answer

Tab to move to the next dialog box. Space to select

share|improve this answer
1  
As stated by the answers above, this doesn't just work out of the box. You have to enable it in System Preferences. –  daviesgeek Aug 18 '12 at 6:19

See full Keyboard Access at the bottom of the following screenshot:

Keyboard Preferences When a prompt window like the one you included appears, the selected button will be highlighted in blue.
Screenshot:

Copy dialog

Then you press the space to action that button.

share|improve this answer
    
Thanks @Am1rr3zA for the previous edit but I discovered my answer didn't work so I amended it. ;o) –  conorgriffin Jan 31 '11 at 23:49

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.