Files
cappuccino/AppKit
Alexander Ljungberg 70f8e3a832 Merge pull request #1278 from aparajita/cappuccino
---

 I discovered the following behavior that is not in conformance with Cocoa:

- Backspace, tab, escape, and space are considered key equivalents.
- Function keys (F1 - FNN) are not considered key equivalents.
- CPTextField executes `performKeyEquivalent` twice if a field is first responder.

Build this Cocoa project and debug it: http://d.pr/Xc3h

Take a look at the debug log while typing some keys. You will see that backspace, tab, escape and space do not trigger `performKeyEquivalent`, and that `performKeyEquivalent` is only executed once for the first responder.

Then run the performKeyEquivalentsTest app in this commit and look at the console log while trying keys in the text fields. If you turn the old code on, you will see how `performKeyEquivalent` is executed twice for the first responder.

For reference on key handling code, I consulted this:

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html%23//apple_ref/doc/uid/10000060i-CH3-SW11
2011-07-17 22:55:18 -04:00
..
2011-05-18 19:30:16 +02:00
2011-05-30 21:03:44 -04:00
2011-01-24 11:05:48 +02:00
2011-01-24 11:05:48 +02:00
2011-01-24 11:05:48 +02:00
2011-03-02 12:36:44 -08:00
2010-10-09 22:07:57 -04:00
2011-07-09 17:05:23 -07:00
2011-02-28 23:48:34 -03:00
2011-01-24 11:05:48 +02:00
2011-01-24 13:43:55 -03:00
2011-05-30 23:20:06 -07:00
2010-12-09 13:00:52 -08:00
2011-04-03 00:56:28 -04:00
2010-12-06 14:05:18 -05:00
2010-12-01 11:04:17 -08:00
2011-02-27 10:01:16 -08:00
2010-12-01 11:04:17 -08:00
2011-03-25 22:52:57 -04:00
2011-01-14 12:16:51 -03:00
2010-12-01 11:04:17 -08:00
2011-02-16 17:39:06 +01:00
2011-03-25 22:52:57 -04:00
2011-04-03 17:45:53 -04:00
2011-03-17 03:03:51 -04:00
2011-01-24 11:05:48 +02:00
2011-03-10 17:39:39 -05:00
2011-01-24 11:05:48 +02:00
2011-04-03 17:56:31 -04:00
2011-01-24 11:05:48 +02:00
2010-10-05 15:54:25 -07:00
2011-01-24 11:05:48 +02:00
2010-11-13 12:41:31 -08:00
2011-05-15 22:14:44 +02:00
2011-04-03 17:45:53 -04:00
2009-11-02 15:59:42 -08:00