Keyboard Shortcuts with menu items containing angle brackets broken

Number:rdar://9893154 Date Originated:03-Aug-2011 04:28 PM
Status:Open Resolved:
Product:Mac OS X Product Version:10.7.0
Classification:Other Bug Reproducible:Always
03-Aug-2011 04:28 PM Andre Arko:
'Keyboard prefpane.jpg' was successfully uploaded

03-Aug-2011 04:28 PM Andre Arko:
Summary: Any custom keyboard shortcut set in the Keyboard system preference panel whose "Menu Title" contains angle brackets (the characters "<" or ">") does not work.

Steps to Reproduce:
0) Have multiple email accounts set up in Mail, so new emails offer you a dropdown next to the "From:" field.
1) Open Keyboard system preference pane
2) Choose Keyboard Shortcuts tab
3) Choose Application Shortcuts item
4) Click "+" button to create new shortcut
5) Set Application to "Mail", set Menu Title to a full email address, like "Andre Arko <>", set keyboard shortcut to anything (I use ⌃1).
6) Click the "Add" button and close System Preferences
7) Restart Mail, hit ⌘N, check From dropdown for keyboard shortcut.

Expected Results:
Keyboard shortcut should be present and functional.

Actual Results:
Not only does the keyboard shortcut not work, but returning to the Keyboard preference pane reveals that the Menu Title has suddenly changed to ">Andre Arko <>" instead of "Andre Arko <>". Here is a screenshot to illustrate:

This worked perfectly in 10.6.

If you open the file ~/Library/Preferences/ and check the NSUserKeyEquivalents Dictionary, it becomes immediately apparent that the Menu titles have been stored without the final ">" character. Here is a screenshot to illustrate:

By manually changing the plist values to include the final ">" character at the end, I was able to re-activate the keyboard shortcuts as they used to work in 10.6.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!