• 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: Command + Delete Key Equivalent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Command + Delete Key Equivalent (From: Simon Jacquier <email@hidden>)

  • Prev by Date: Re: Help! Open File always returns YES
  • Next by Date: Re: NSComboBox initialFirstResponder and nextKeyView Outlets
  • Previous by thread: Command + Delete Key Equivalent
  • Next by thread: works fine in GDB but that's it
  • Index(es):
    • Date
    • Thread