Re: Menu shortcuts without modifiers?
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