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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to