• 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: gweston <email@hidden>
  • Date: Mon, 06 May 2013 21:58:10 +0000 (GMT)

Steve Mills asked: 

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"?
 
In light of the great opportunity for user confusion - because a little rectangle around the number is hardly a "clear" indicator - and the reality that many users do not have a number pad, I think the solution I'd recommend is to rethink the choice of key equivalents so as to obviate the problem.

That said, if you insist on going down this path, it might work to include NSNumericPadKeyMask in the key equivalent mask for the item.

But seriously: Think about how much you want to annoy notebook users first.
_______________________________________________

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>
  • Prev by Date: Re: Restricting NSWindow Movement
  • Next by Date: Re: Need advice: Object ownership and threading issue, causing a rare crash.
  • Previous by thread: Re: Showing numpad key equivs in menu items
  • Next by thread: Re: Showing numpad key equivs in menu items
  • Index(es):
    • Date
    • Thread