• 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 plain keystrokes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Database developer needed In Vancouver BC
  • Next by Date: Dynamic resizing of shared subviews
  • Previous by thread: Re: Database developer needed In Vancouver BC
  • Next by thread: Dynamic resizing of shared subviews
  • Index(es):
    • Date
    • Thread