Re: assigning delete key to menu item
Re: assigning delete key to menu item
- Subject: Re: assigning delete key to menu item
- From: Jonathan Hendry <email@hidden>
- Date: Thu, 27 Sep 2001 08:03:45 -0500
On Wednesday, September 26, 2001, at 06:21 , Andrew Platzer wrote:
On Tuesday, September 25, 2001, at 06:55 , Sven A. Schmidt wrote:
I have looked at the archives for this one, because it really smells
like a faq - but it seems like it hasn't come up yet:
How can I assign the backspace key as a menu shortcut?
You have to do it via code:
unichar backspaceKey = NSBackspaceCharacter;
[menuItem setKeyEquivalent:[NSString stringWithCharacters:&backspaceKey
length:1]];
I think you can do it in IB by setting the shortcut character to \B
- Jon