Files
cappuccino/AppKit
Aparajita Fishman 293114f1a0 Fixed: delete methods erased entire field
Previously, the deleteForward:, deleteBackward: and delete: methods in CPTextField called setStringValue, which would consult a formatter, and if the formatter failed all of the text would be deleted.

Now the code has been refactored such that when one of the delete methods is invoked via a key event, the formatter is not used and the DOM event is used, which results in the expected behavior.

A bug in checking the selected range was also fixed in deleteForward:.

The CPFormatter test was updated with buttons to call the delete methods directly to ensure they work correctly when not invoked from a key event.

Closes #1997
2014-07-29 23:32:14 +04:00
..
2013-01-23 15:48:55 +07:00
2013-08-12 23:31:34 -04:00
2013-03-26 16:52:46 -07:00
2013-03-25 15:59:10 -04:00
2014-06-14 08:14:38 +02:00
2013-01-23 15:48:55 +07:00
2013-01-08 18:07:15 +00:00
2013-02-20 03:00:20 -05:00
2013-06-12 10:27:28 +01:00
2013-01-23 15:48:55 +07:00
2013-01-24 19:18:39 +08:00
2010-12-09 13:00:52 -08:00
2013-05-16 11:26:01 +02:00
2013-01-24 19:18:39 +08:00
2014-07-07 19:21:00 -07:00
2011-03-25 22:52:57 -04:00
2013-02-06 16:36:49 +00:00
2014-03-27 13:33:32 -07:00
2013-01-23 15:48:56 +07:00
2014-02-16 23:25:22 -06:00
2013-01-11 00:48:18 +00:00
2013-01-24 19:18:39 +08:00
2013-02-25 18:27:44 +00:00
2013-02-27 09:07:21 -05:00
2013-03-06 10:19:26 -05:00
2011-10-25 14:33:47 +02:00