• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [IB] - can't assign keyboard shortcut to a menu item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [IB] - can't assign keyboard shortcut to a menu item
      • From: Alexander Bokovikov <email@hidden>
References: 
 >[IB] - can't assign keyboard shortcut to a menu item (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: [iPhone] Get rid of the default navigation back button
  • Next by Date: Re: text control for keyboard shortcut input?
  • Previous by thread: [IB] - can't assign keyboard shortcut to a menu item
  • Next by thread: Re: [IB] - can't assign keyboard shortcut to a menu item
  • Index(es):
    • Date
    • Thread