• 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
"Space" key equivalent for menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Space" key equivalent for menu items


  • Subject: "Space" key equivalent for menu items
  • From: Andreas Schwarz <email@hidden>
  • Date: Tue, 9 Apr 2002 11:28:45 -0700

I have a couple NSMenuItems whose key equivalent I want to set to be the space bar (I want one to respond to command-space and the other to command-option-space). Entering " " (a space) into the key equivalent field in IB makes the key equivalent in the menu show up as "Space", so seems like it should work.

However, as soon as I use it in my app (or even do "Test interface" from IB) the key equivalent no longer shows up as "Space" (it shows up as blank, although the modifiers are still shown in the menu) and the menu items don't respond to command-space or command-option-space.

I did try programmatically setting the key equivalent to @" ", but that just gave me the same result.

Is there anything I'm doing wrong? Is this just not supported (in spite of what IB implies) or is this a bug? Anyone know how to work around it?

Thanks,
Andreas Schwarz
http://homepage.mac.com/schwarz
_______________________________________________
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.

  • Prev by Date: Re: Finding topmost window of a certain type
  • Next by Date: Special characters with NSEvent
  • Previous by thread: Re: Getting Desktop window
  • Next by thread: Re: "Space" key equivalent for menu items
  • Index(es):
    • Date
    • Thread