Feb 03

Maybe everyone knows this (and if so, I apologize for the post), but maybe it’ll help someone. When switching to Mac one thing that annoyed the hell out of me was that I couldn’t use the tab key to switch between buttons in a dialog box. It was some time before I stumbled on it: In the Keyboard and Mouse prefs, there’s an option to set Tab to switch between “all controls”. Note that unlike Linux, if you use tab to switch to another control button, and press enter, the originally selected button is pressed, not the new one that you selected with tab. To select the new button (which will be white with blue around it), press spacebar.

written by insane-dreamer \\ tags: ,

25 Responses to “switching between buttons in a dialog box”

  1. InfinitiMoon Says:

    Thanks for the tip. I needed that one. New to Mac as of past 3 months and that was bugging me, too.

    Still, I must ask, what’s the “official Mac method” of doing this on a standard OS X setup without altering someone’s preferences? I was famous for being able to operate Windows w/o a mouse (difficult, but necessary if your mouse stops working for some reason).

    Along these lines, here’s a link to official OS X keyboard shortcuts:

    http://docs.info.apple.com/article.html?artnum=75459

  2. 5.4 fighting Says:

    Hey, great tip, but I’m not able to locate the “set tab to switch between all controls” preference. I’ve looked all of the Mouse and Keyboard area of System Preferences. Can you give specific details? Thanks.

  3. Duck Says:

    System Preferences – Mouse & Keyboard – Keyboard Shortcuts

    At the bottom is says Full Keyboard Access, select All Controls.

    (Note: I’m not sure if this works in Tiger)

  4. skl Says:

    thx for the tip with the space bar – had already given up on that as even though I managed to move the highlight around hitting enter just would not do it…

  5. Julio Says:

    You can cycle through every button in a dialog by pressing (repeatedly) ctrl+F7 (w/o activating “set tab to switch between all controls”). I guess this can be the Mac way of doing it :)

  6. pi Says:

    I’ve been wondering about this shortcut for 5 years. I can’t believe I didn’t know about it. Thanks 1,000,000 for posting it. This makes my life better. If you’re fast on a keyboard, you shouldn’t have to reach for the mouse, right? Now we don’t have to. Hallelujah! To post this, I’m going to [tab] down to the ’submit comment’ button below and hit spacebar. Oh, the little joys of life!

  7. Angus Says:

    can’t believe this one, been looking for it for ages ! Cheers

  8. Sarah Says:

    This is a good one – thanks!

  9. anonymous Says:

    i still don’t get it. help?

  10. dani Says:

    Thank you! =)

  11. Sven Says:

    Cool indeed.

    But unfortunately, this behaviour seemd to depend also on the application used.
    For instance for me, when using Photoshop, the tab key will switch only between the lists and input fields, not with the buttons.
    Does anybody have the same behaviour or is it just me ?

    Thanks

    — Sven

  12. Gwen Says:

    I appreciate all your tips but have one teensy quibble…I really wish you would stop apologizing to the people who may already know about the particular shortcut! If they know it, they will ignore it, so you should ignore them and focus on the people you will help by posting it instead! Thanks!

  13. Shawn Says:

    You can also just type the first letter of the text that’s in the button that you want to press. For example, if you want ‘Cancel,’ just press ‘c’ on the keyboard. I’m not sure what happens when two buttons start with the same letter. I haven’t run into that yet.

  14. VLonline Says:

    Do Help!! Thanks for your tip!

  15. VLonline Says:

    It is Helpful!! Thanks for your tip!

  16. jAviator89 Says:

    Just FYI, this option can be switched at any point in time without having to open the System Preferences simply by pressing “ctrl + F7″

    Of course, this is stated in the Keyboard and Mouse settings window.

  17. Louise Says:

    thanks, i was looking for this!

  18. Charles Clements Says:

    Fantastic tip, and one that cures an ill that was driving me crazy… Thanks!

  19. David Says:

    What I’d like to know is how to disable this in Leopard. Under Tiger, it worked as described in this tip. Under Leopard, even with “Full Keyboard Access, select All Controls” turned OFF, all controls are still cycled through with the Tab key. How can you return to tabbing just among text entry fields?

  20. Paul O'Shannessy Says:

    This has been bothering me since day one (~4 months ago). I consider myself good with computers and hate reaching for the mouse if I don’t have to. Thank you!

    @David: Check comment #3 above for the specifics, or the shortcut mentioned in comment #16.

  21. AndyfromTucson Says:

    Thanks for posting this. As a recent convert from Windows having to reach for the mouse to deal with dialog boxes was driving me nuts, but thanks to you I have solved one of my last major Mac annoyances.

  22. Ryan Says:

    Thank you! This issue has been a 5mo. annoyance, having to use the mouse to navigate my blending layer modes in Photoshop day-in day-out. I can’t wait to get to work Monday and try this out!

    Thanks for posting keyboard shortcuts for drop down menus for Leopard on Google.

  23. Marleen Says:

    Hey people,
    I have the same problem as Sven. In Photoshop I can’t use Tab (or any other key for that matter) to switch through buttons. Does anyone have a solution for that?

    Greetings Marleen

  24. curioustolearn Says:

    Great tip! Thanks. Just switched to Mac from Windows last week and this is helpful. BTW, the ctrl+F7 tip does not work for me.

  25. thankful Says:

    Thanks. Tabbing through controls stopped working for me 3-4 days ago and I have no idea how. Either I somehow hit the magic key combo or the latest OS X update reset this. Seeing how accidentally hitting fn+ctl+F7 is pretty unlikely, I’m guessing the latter.

Leave a Reply