Re: A question about key equivalents for menu items
Re: A question about key equivalents for menu items
- Subject: Re: A question about key equivalents for menu items
- From: Peter Ammon <email@hidden>
- Date: Mon, 26 Jan 2009 15:19:34 -0800
On Jan 26, 2009, at 2:57 PM, Slava Pestov wrote:
Hi all,
Is there a nice way to get a Unicode string from a keyboard shortcut,
that looks like the key equivalents in NSMenuItems, for rendering
elsewhere in a GUI?
Slava
Hey Slava,
No such function, unfortunately. You can roll your own with the
Unicode characters for the modifier keys (0x2303, 0x2325, 0x21E7,
0x2318 for control, option, shift, and command), though there's still
some special cased glyphs, like space. This would be worth an
enhancement request.
-Peter
PS: Keep up the good work on Factor, it's way cool!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden