• 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
performKeyEquivalent called twice for some key strokes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: performKeyEquivalent called twice for some key strokes
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Retina / non retina : Drawing icons
  • Next by Date: "Introducing ioscomponents.com"
  • Previous by thread: Re: Retina / non retina : Drawing icons
  • Next by thread: Re: performKeyEquivalent called twice for some key strokes
  • Index(es):
    • Date
    • Thread