Keyboard Shortcuts with menu items containing angle brackets broken

Originator:andre.arko
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 <andre@arko.net>", 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 <andre@arko.net>" instead of "Andre Arko <andre@arko.net>". Here is a screenshot to illustrate: https://img.skitch.com/20110804-tdpdme94ttn8qjdnpwkf86p25h.jpg.

Regression:
This worked perfectly in 10.6.

Notes:
If you open the file ~/Library/Preferences/com.apple.mail.plist 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: https://img.skitch.com/20110804-pd6sjfwm8psm2kswjmn9xi46ya.jpg.

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.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!