Menus to distinguish Numpad vs normal digit keys
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