Re: Command + Delete Key Equivalent
Re: Command + Delete Key Equivalent
- Subject: Re: Command + Delete Key Equivalent
- From: John Blackburn <email@hidden>
- Date: Fri, 15 Mar 2002 07:01:45 -0800
This is a known bug. You can use this workaround until it's fixed:
// Work around a bug IB which coerces command-delete to
command-forward delete
// by setting command-delete manually here.
{
const unichar backspace = 0x0008;
[deleteMenuItem setKeyEquivalent:[NSString
stringWithCharacters:&backspace length:1]];
[deleteMenuItem setKeyEquivalentModifierMask:NSCommandKeyMask];
}
John Blackburn
On Friday, March 15, 2002, at 12:23 AM, Simon Jacquier wrote:
Hi list,
I'd like to set the Command + Delete Key Equivalent for a menu item
(like
the "Move to Trash" command in the Finder).
If I set the '\d' equivalent to my item in IB, when I test the
interface or
run my project the key equivalent is Command + Forward delete, not just
standard delete.
How can I force my item to respond to the Command + Delete key
equivalent?
TIA,
Simon Jacquier
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.