• 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: Menu shortcuts without modifiers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu shortcuts without modifiers?


  • Subject: Re: Menu shortcuts without modifiers?
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 21 Sep 2009 18:35:59 +0200

On 18.09.2009, at 23:07, Peter Ammon wrote:
For key events without modifiers, like hitting the spacebar, the first responder of the key window should get first crack via keyDown:. So I'm not sure why you're seeing the behavior you describe. I wrote a quick test with a focused text field in the key window and a main menu item with Space as its key equivalent, and the text field "won" for spacebar.

Can you post the backtrace of the call to the action method of your menu item? It's possible it's being invoked from some place other than -[NSApplication handleKeyEquivalent:].


Peter,

sorry, I must have had a brainfart. The space key works just fine. It's the left and right arrow keys where the menu gets first shot instead of the text field. I actually rewrote the windows I thought were still Carbon a while ago. Must be all the pre-Macoun conference hoo-hah that I forgot about that.

Cheers,
-- Uli Kusterer
Sole Janitor
http://www.the-void-software.com

_______________________________________________

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


References: 
 >Menu shortcuts without modifiers? (From: Uli Kusterer <email@hidden>)
 >Re: Menu shortcuts without modifiers? (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: favicon of address
  • Next by Date: Re: getting started on bindings => problems with NSMutableArray - NSArrayController - NSTableView
  • Previous by thread: Re: Menu shortcuts without modifiers?
  • Next by thread: Reg: outlineView dataSource method outlineView:child:ofItem:
  • Index(es):
    • Date
    • Thread