Re: assigning delete key to menu item
Re: assigning delete key to menu item
- Subject: Re: assigning delete key to menu item
- From: Andrew Platzer <email@hidden>
- Date: Wed, 26 Sep 2001 16:21:03 -0700
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]];
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e