Accessing Menus in Mac OS X via Keyboard

5,045

Solution 1

  1. Control-Fn-F2, or Control-F2 if you use F1, F2 etc. as standard function keys.

  2. System Preferences » Keyboard and Mouse » Keyboard Shortcuts. Click the + button and follow the instructions.

Solution 2

My favorite way to do this is to use the help shortcut (cmd-shift-/), which brings the focus in Leopard up to the help bar. Then start typing the name of the command you want and it will filter the list below to the commands that fit your pattern. Just down arrow to the right one and it will actually show you where in the menus that command exists, along with any shortcuts assigned to it. Hit enter and it executes the command.

This makes more sense if you actually do it :).

This makes it really easy to search through all of your commands for the right one, and in a few keystrokes gives you access to all of the menu items.

Unfortunately this doesn't work anymore in Firefox (where you have to use the old ctrl-F2 way) because they hijacked the "help" shortcut to bring you to a stupid webpage that is never what I want.

Solution 3

According to http://www.xvsxp.com/misc/keyboard.php, if you hit Control-F2, you can navigate the menus just like in Windows: Left or right arrows, or type the first letter or so of a menu's name or a menu options name to select it, and enter works just like clicking the option.

As far as changing XCodes menu shortcuts, [you can just use the "Key Binding Preferences" in the XCode prefs dialog. http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeWorkspace/300-Keyboard_Shortcuts/custom_key_equivalents.html#//apple_ref/doc/uid/TP40002706-SW2

Solution 4

It's been several years since this question was asked, but for those who stumble upon this thread my answer to a similar question might be useful (link below).

In particular, those coming to Mac OS X from a PC/Windows background might look for something to replicate the behavior of the Alt accelerators in Windows, such as clicking Alt + F to highlight the File item on the menu, or to access various buttons in dialog boxes.

A nice feature that almost replicates the Windows Alt accelerators in an OS X dialog box is to use + + first_letter.

Sometimes it is possible to do only + first_letter, but this is not universal. For example, in a Save As dialog, + N fails to select New Folder. But + + N does the trick.

More details, including on how to access menu items using this technique can be found in my previous post.

Share:
5,045

Related videos on Youtube

pisfire
Author by

pisfire

iOS App Developer, Android App Developer, ReactJS Developer, Flutter

Updated on September 17, 2022

Comments

  • pisfire
    pisfire over 1 year

    My question is how to access application menus, like file, edit, view - using the keyboard.

    Or how to create a new short cut in any application (for example Xcode).

    Example -> I want to create a short cut for following menu option in Xcode

    =>Run Menu -> Start With Performance tool -> Leaks

    like - Command + shift + Ctrl + R

    Is it possible? How?

    I have included here two questions

    • How to access menu through keyboard in Mac OS X?
    • How to create a new short cut for any particular option of application?
  • pisfire
    pisfire over 14 years
    @Benjamin - Sir - I am using MAC OS X - 10.5.7. & The option that you suggested to me isn't working.
  • joaquin
    joaquin over 14 years
    @sagar: on MacOS X 10.5.7, the Control-Fn-F2 option works for me; the plain Control-F2 just tries to increase the brightness of my screen. However, that probably means I'm not using the keys as standard function keys.
  • Chealion
    Chealion over 14 years
    Full Keyboard Access needs to be turned on for this to work: You can turn it on in the Keyboard Preference Pane. (Or press <kbd>Control</kbd>-<kbd>F7</kbd>)
  • JoeG
    JoeG over 14 years
    +1 Oh, I like it. It's almost Quicksilver-like. I'd never got my head round what that 'search' on the help menu was for, given that it seemed to include menus and stuff - how neat. That's a tip I'll be using every day from now on. :-)
  • Benjamin Dobson
    Benjamin Dobson over 14 years
    @Chealion—not for me it doesn't. @sagar—which one? And why aren't you on 10.5.8?
  • John Rudy
    John Rudy over 14 years
    +1. WOW. I never knew that, and it is truly awesome!
  • bobobobo
    bobobobo over 14 years
    sweet tip!!!!!!
  • haridsv
    haridsv about 13 years
    You can also change the key sequence for the default Contrl+F2 under "Settings -> Keyboard -> Keyboard Shortcuts -> Keyboard Text & Input" and set a new key sequence for "Move Focus to Menu Bar" option. I like to set Cmd+Space to mimic that of windows (which is by default used for Spotlight search)
  • oferei
    oferei almost 10 years
    damn, I can only upvote this once.