performKeyEquivalent called twice for some key strokes
performKeyEquivalent called twice for some key strokes
- Subject: performKeyEquivalent called twice for some key strokes
- From: Leonid Romanov <email@hidden>
- Date: Fri, 23 Aug 2013 17:17:01 +0400
Hello,
Pressing "Command +" results in two -performKeyEquivalent calls. Here is a stack trace snippet for the first call:
1 AppKit 0x00007fff903da2f9 -[NSView _performKeyEquivalent:conditionally:] + 41
2 AppKit 0x00007fff903da442 -[NSView performKeyEquivalent:] + 166
3 AppKit 0x00007fff903da2f9 -[NSView _performKeyEquivalent:conditionally:] + 41
4 AppKit 0x00007fff903da259 -[NSWindow performKeyEquivalent:] + 64
5 AppKit 0x00007fff903da044 -[NSApplication _handleKeyEquivalent:] + 462
6 AppKit 0x00007fff90297173 -[NSApplication sendEvent:] + 4480
And for the second call:
1 AppKit 0x00007fff903da2f9 -[NSView _performKeyEquivalent:conditionally:] + 41
2 AppKit 0x00007fff903da442 -[NSView performKeyEquivalent:] + 166
3 AppKit 0x00007fff903da2f9 -[NSView _performKeyEquivalent:conditionally:] + 41
4 AppKit 0x00007fff903da259 -[NSWindow performKeyEquivalent:] + 64
5 AppKit 0x00007fff903da044 -[NSApplication _handleKeyEquivalent:] + 462
6 AppKit 0x00007fff900e3927 -[NSApplication _handleSpecialAlternateKeyEquivalent:] + 656
7 AppKit 0x00007fff9029718e -[NSApplication sendEvent:] + 4507
As you can see, the second -performKeyEquivalent call is initiated by -[NSApplication _handleSpecialAlternateKeyEquivalent:]. So, could anyone tell me what is so special about "Command +" key stroke that it warrants not one, but two -performKeyEquivalent calls, and how do I filter out the second call?
Thanks,
Leonid.
_______________________________________________
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