18

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?
21
  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.

5
  • 1
    @Benjamin - Sir - I am using MAC OS X - 10.5.7. & The option that you suggested to me isn't working. Aug 25 '09 at 23:43
  • @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. Aug 26 '09 at 6:03
  • 2
    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>)
    – Chealion
    Aug 26 '09 at 7:38
  • @Chealion—not for me it doesn't. @sagar—which one? And why aren't you on 10.5.8? Aug 26 '09 at 9:13
  • 1
    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)
    – haridsv
    Apr 25 '11 at 16:59
27

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.

4
  • 2
    +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. :-)
    – robsoft
    Aug 26 '09 at 7:46
  • 2
    +1. WOW. I never knew that, and it is truly awesome!
    – John Rudy
    Aug 26 '09 at 20:22
  • sweet tip!!!!!!
    – bobobobo
    Nov 9 '09 at 18:18
  • 1
    damn, I can only upvote this once.
    – oferei
    Jun 27 '14 at 9:16
2

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

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.