Re: Key equivalents for non-menu items
Re: Key equivalents for non-menu items
- Subject: Re: Key equivalents for non-menu items
- From: Randy Widell <email@hidden>
- Date: Tue, 15 Feb 2011 20:20:39 -0800
On 2/15/11 7:49 PM, Graham Cox wrote:
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.
That was essentially what I did first; I was hoping for a better way.
Thanks, though, I'll keep rolling down that path then.
_______________________________________________
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