Re: [IB] - can't assign keyboard shortcut to a menu item
Re: [IB] - can't assign keyboard shortcut to a menu item
- Subject: Re: [IB] - can't assign keyboard shortcut to a menu item
- From: Graham Cox <email@hidden>
- Date: Mon, 3 Aug 2009 19:56:04 +1000
On 03/08/2009, at 7:22 PM, Alexander Bokovikov wrote:
It's my first attempt to assign a popup menu to a view, so perhaps
my question is stupid, but I can't find an explanation in the
Apple's docs... The "Key Equiv." field is grayed, and don't see any
obvious solution to activate it. I've created a menu, associated it
with a view, associated a menu item with action, but this field is
still gray.
Where is the problem?
Contextual (Pop-Up) Menus usually can't have keyboard equivalents
unless they are merely duplicating main menu functionality. Even if
you managed to assign a key equivalent, it isn't automatically handled
- you'd have to write code to support it and it's really complicated,
because the point of contextual menus is that they have a context (the
click location) which activating them from the keyboard doesn't provide.
Give up - you basically can't do it.
--Graham
_______________________________________________
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