performKeyEquivalent called twice for plain keystrokes
performKeyEquivalent called twice for plain keystrokes
- Subject: performKeyEquivalent called twice for plain keystrokes
- From: Daniel Jalkut <email@hidden>
- Date: Tue, 20 Sep 2005 13:03:58 -0400
I noticed that if my NSWindow subclass implements
performKeyEquivalent (and returns NO), then the method gets called
twice (with NSKeyDown) for every unmodified keystroke.
The first call comes directly from NSWindow's keyDown: method, and
the second call comes a bit later, from NSApplication's
_handleKeyEquivalent: method.
If there are any modifier keys involved, then NSWindow's keyDown: is
out of the equation.
I plan on reporting this as a bug unless somebody thinks there is a
reasonable explanation for it being correct. I feel that the default
responder chain should not have redundant paths leading to the same
place.
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden