• 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: Menu Item Key Equivalent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu Item Key Equivalent


  • Subject: Re: Menu Item Key Equivalent
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 05 Aug 2011 00:14:09 -0700

On Aug 4, 2011, at 23:42 , Kyle Sluder wrote:

> Not being an Aperture user myself: Is Aperture a Cocoa app? Do these key equivalents work if the main content view isn't first responder. Are they even assigned in the menus?
>
> FWIW we do have unadorned keys like  Z to zoom in OmniGraffle. I'm not sure how it implements that.

I believe that key equivalents *without* the Command key started being supported in Cocoa applications some time before Leopard.

I believe that this capability superseded a harder-to-use Carbon technique, and also provided standard menu drawing for the shift, option and control key symbols, something that had always needed custom code in Carbon.

I believe we established a few weeks ago that the sequence is something like this:

-- Key combinations that *do* include the Command key are intercepted before the first responder gets a look at them.

-- If they are consumed by a menu item, the first responder never sees them.

-- Otherwise, or if they *don't* include the Command key, they're sent to the responder chain normally.

-- If the responder chain doesn't consume them, then they're interpreted as menu item shortcuts if possible.

-- If they're not consumed by a menu item, the application beeps.

Those probably aren't the exact details, but this order means that typing works normally in a text field, even if the typed characters are otherwise interpretable as non-Command key equivalents.


_______________________________________________

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: Menu Item Key Equivalent
      • From: koko <email@hidden>
    • Re: Menu Item Key Equivalent
      • From: Andy Lee <email@hidden>
References: 
 >Menu Item Key Equivalent (From: koko <email@hidden>)
 >Re: Menu Item Key Equivalent (From: Kyle Sluder <email@hidden>)
 >Re: Menu Item Key Equivalent (From: koko <email@hidden>)
 >Re: Menu Item Key Equivalent (From: Kyle Sluder <email@hidden>)
 >Re: Menu Item Key Equivalent (From: koko <email@hidden>)
 >Re: Menu Item Key Equivalent (From: Graham Cox <email@hidden>)
 >Re: Menu Item Key Equivalent (From: vincent habchi <email@hidden>)
 >Re: Menu Item Key Equivalent (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Menu Item Key Equivalent
  • Next by Date: Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
  • Previous by thread: Re: Menu Item Key Equivalent
  • Next by thread: Re: Menu Item Key Equivalent
  • Index(es):
    • Date
    • Thread