• 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
Menus to distinguish Numpad vs normal digit keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Menus to distinguish Numpad vs normal digit keys


  • Subject: Menus to distinguish Numpad vs normal digit keys
  • From: Russ <email@hidden>
  • Date: Mon, 27 Sep 2010 11:35:24 -0700 (PDT)

I have different menu keys set up in my app for control-4 and
control-number-pad-4, but it seems that Cocoa is not distinguishing between the
two. (There are several key equivalents in the number-pad area that are used for
variants on directional motions, ie left, right, up, down, etc, whereas the
usual digit accelerators are used for more usual tasks, so I need to keep the
two separate).


The NSMenu setKeyEquivalent routine takes Unicode key codes, right? I'd like to
be able to instead specify the key using an Apple key code, ie AK_KP_0..9, which
has separate codes for each flavor.


Any suggestions on what/how to override to get the correct functionality?


Thanks





_______________________________________________

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: Menus to distinguish Numpad vs normal digit keys
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • Next by Date: Set NSSegmentedControl ToolTip
  • Previous by thread: [ANN] A new book by Erik M. Buck
  • Next by thread: Re: Menus to distinguish Numpad vs normal digit keys
  • Index(es):
    • Date
    • Thread