Re: Plus sign key equivalent.
Re: Plus sign key equivalent.
- Subject: Re: Plus sign key equivalent.
- From: Jens Alfke <email@hidden>
- Date: Sun, 14 Oct 2012 13:17:15 -0700
On Oct 14, 2012, at 12:24 PM, Jeff Smith <email@hidden> wrote:
> I'm trying to set the key equivalent for a menu item to the plus sign.
> Interface Builder won't let you do that. I tried doing it manually with
> [item setKeyEquivalent:@"+"];
> But to make it work you have to hold down the shift key.
Right. Don’t you normally have to press Shift-= on your keyboard to get a + sign? (It’s that way on US keyboards at least.) If you want it unshifted, set the key to “=“.
There’s an unshifted + key on the numeric keypad of an extended keyboard, but not everyone has an extended keyboard; in fact I would guess most users don’t. I am not sure how you set a menu key binding for that, since you’d have to refer to it by its key-code not its character value.
—Jens
_______________________________________________
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