Re: Key equivalents for non-menu items
Re: Key equivalents for non-menu items
- Subject: Re: Key equivalents for non-menu items
- From: Graham Cox <email@hidden>
- Date: Wed, 16 Feb 2011 14:49:31 +1100
On 16/02/2011, at 2:36 PM, Randy Widell wrote:
> I have a view displaying waveforms. I would like to have a keyboard shortcut that tags a location on the waveforms at the location of the mouse cursor. These commands do not make any sense in the main menu...they could go there, but they would be clutter.
Just override -keyDown: in your view and do whatever you want. Note though that your key equivalents can't be command-<letter> because they are processed as menu equivalents separately.
--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