Re: Menu Item Key Equivalent
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