Files
cappuccino/AppKit
Alexander Ljungberg ec0cd22c1d Merge pull request #1382 from kjamieson/cappuccino
---

Currently CPTextField only updates its internal string value from the actual HTML input element on a keyUp event. If the CPTextField loses focus before the keyUp event is received, the internal value does not get updated and any text entered since the last keyUp event is lost.

This is easily reproduced when editing a text field by quickly entering text and hitting the enter/return key to insert a new line (before the keyUp event has fired), or when holding down a key (to repeatedly enter the same character), and then tabbing out of the text field -- the value gets reset to whatever the value was before the key was held down.

This fix changes CPTextField#insertNewLine and CPTextField#resignFirstResponder to reload the string value from the input element if it has changed (in the same way as if a keyUp event had been triggered)
2011-11-09 20:43:13 +00:00
..
2011-11-03 23:14:44 +01:00
2011-05-18 19:30:16 +02:00
2011-07-08 15:50:29 +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
2011-05-20 00:23:55 -07: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
2011-05-20 00:23:55 -07:00
2010-12-01 11:04:17 -08:00
2011-10-06 01:59:48 +01: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-08-20 18:48:11 +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-10-03 17:28:32 +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
2011-10-25 14:33:47 +02:00