• 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: Key equivalents for non-menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Key equivalents for non-menu items
      • From: Randy Widell <email@hidden>
References: 
 >Key equivalents for non-menu items (From: Randy Widell <email@hidden>)
 >Re: Key equivalents for non-menu items (From: Kyle Sluder <email@hidden>)
 >Re: Key equivalents for non-menu items (From: Randy Widell <email@hidden>)

  • Prev by Date: Re: Key equivalents for non-menu items
  • Next by Date: Animation doesn't reach end value
  • Previous by thread: Re: Key equivalents for non-menu items
  • Next by thread: Re: Key equivalents for non-menu items
  • Index(es):
    • Date
    • Thread