• 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
Why does menu item with shift-delete not work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does menu item with shift-delete not work?


  • Subject: Why does menu item with shift-delete not work?
  • From: Steve Mills <email@hidden>
  • Date: Fri, 17 Jan 2014 11:45:51 -0600

We have a menu item whose key equiv is shift-delete (backspace, not forward delete). Typing that key does not even call the menu's performKeyEquivalent method. How can we get this to work like it should?

BTW, I've already noticed that when you set the key equiv in IB, it sets it to 8 (Unicode backspace), but when you type that key, the character in the event is 127 (Unicode delete). Is that the problem? The OS just doesn't know how to map it correctly? I had to remap 127 to 8 in our NSMenu subclass' performKeyEquivalent method in order to get command-delete to work.

I've also tried programmatically changing the item's key equiv from 0x08 to 0x7f after installing the menu and that didn't help.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255



_______________________________________________

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


  • Follow-Ups:
    • Re: Why does menu item with shift-delete not work?
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: PDFDocument, ARC and 10.9 question
  • Next by Date: Re: PDFDocument, ARC and 10.9 question
  • Previous by thread: Re: Any way to determine where a string will be truncated?
  • Next by thread: Re: Why does menu item with shift-delete not work?
  • Index(es):
    • Date
    • Thread