Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Keyboard shortcuts for conflicting menu items Apps
When assigning a keyboard shortcut to a program's menus in System Preferences, you can run into a problem if more than one menu item in the program has the same name.

If you describe the full 'menu path' using '->' as a delimiter between items (no spaces), then OS X will follow that path and select the correct menu item.

For instance:
Font->Edit->Increase
The '->' symbol seems to be used from Mountain Lion and later. Earlier systems use '>' on its own.

I don't claim to have discovered this idea myself, but the hint doesn't seem to be very well-known, so I thought it should be posted here, if it hasn't already.

Credit goes to this discussion thread on the Apple forums.

[crarko adds: If someone still happens to be running Lion (10.7) can you try this and post about which delimiting symbol worked? The referenced Apple discussion implied the change happened with 10.8 but the original text for the hint said 10.7, and I'm curious to know which is correct. Thanks.]
    •    
  • Currently 3.43 / 5
  You rated: 1 / 5 (14 votes cast)
 
[7,937 views]  

Keyboard shortcuts for conflicting menu items | 6 comments | Create New Account
Click here to return to the 'Keyboard shortcuts for conflicting menu items' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Keyboard shortcuts for conflicting menu items
Authored by: scottbayes on Feb 20, '14 11:47:24AM

Best.hint.ever



[ Reply to This | # ]
Keyboard shortcuts for conflicting menu items
Authored by: KiwiGraham on Feb 20, '14 05:06:55PM

Excellent. For ages I've had Mail keyboard shortcuts to move/clean messages from Inbox to other folders by using the folder name - but up until implementing this hint the "Move" could also be a "Copy" if not preceded by doing a move explicitly to set some sort of context for the following key presses.



[ Reply to This | # ]
Keyboard shortcuts for conflicting menu items
Authored by: gopes on Feb 22, '14 11:50:01AM

I couldn’t get this to work in Mail. The keyboard shortcut shows up in the menu, but it doesn’t do anything. (I also had to make sure the containing mailbox was collapsed in the sidebar so that the “Move to” menu would be hierarchical.)



[ Reply to This | # ]
Keyboard shortcuts for conflicting menu items
Authored by: gopes on Feb 22, '14 11:52:30AM

Um, never mind, it suddenly started working…



[ Reply to This | # ]
Keyboard shortcuts for conflicting menu items
Authored by: poenn on Feb 21, '14 01:27:38AM

Great hint indeed! I was so hoping that it would fix my problem with 2 Safari shortcuts, but it did not. :-(

I enabled the Developer menu and created 2 shortcuts for different User Agents. The reason for this is that I do not want to install Flash. So on sites that are 'requiring' the plugin I just switch to an iPad User Agent and suddenly Flash is no longer required. :-) The sad thing is that these shortcuts stop working once you quit and relaunch Safari. Then you have to visit the Developer/User Agent menu once with the mouse in order for the shortcuts to work again. It stays this way until you quit Safari again. Well, seems like a bug with a menu that’s normally hidden. I sent a bugreport to Apple.

Or do you have any idea how to fix that?

Thanks
poenn



[ Reply to This | # ]
Keyboard shortcuts for conflicting menu items
Authored by: Lri on Apr 07, '14 04:02:10PM

If you edit a plist directly, you can use a format like this:

defaults write -app Mail NSUserKeyEquivalents '{
"\033Format\033Indentation\033Decrease"="^\Uf702";
"\033Format\033Indentation\033Increase"="^\Uf703";
}'

Replace \033 with  in an XML plist.



[ Reply to This | # ]