• 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: Showing numpad key equivs in menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing numpad key equivs in menu items


  • Subject: Re: Showing numpad key equivs in menu items
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 06 May 2013 14:20:44 -0500

On May 6, 2013, at 1:19 PM, Steve Mills wrote:

> So is there no way in Cocoa to assign key equivs by key code instead of by string? The Carbon menu item could be set by glyph (SetMenuItemKeyGlyph) or by key code (SetMenuItemCommandKey), which sure were handy. The key equiv would clearly show numpad glyphs with a rounded rect around them. In Cocoa, how does one make it clear that one menu item's key equiv is regular "1" and another menu item's key equiv is "numpad 1"?

I don't know if this works, but you might try [menuItem setKeyEquivalentModifierMask:NSNumericPadKeyMask].  That said, I'm not sure that users will understand the distinction between 1 and numpad 1, even with a rounded rect border.  Also, compact keyboard don't have separate numeric keypads.

Regards,
Ken


_______________________________________________

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: Showing numpad key equivs in menu items
      • From: Steve Mills <email@hidden>
References: 
 >Showing numpad key equivs in menu items (From: Steve Mills <email@hidden>)

  • Prev by Date: Showing numpad key equivs in menu items
  • Next by Date: Re: NSInputStream get NSStreamEventEndEncountered without reason
  • Previous by thread: Showing numpad key equivs in menu items
  • Next by thread: Re: Showing numpad key equivs in menu items
  • Index(es):
    • Date
    • Thread