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-11-24 22:21:56 +01:00
2012-07-21 14:40:44 +09:00
2013-01-19 02:11:37 +00:00
2013-04-30 15:25:23 -07:00
2013-04-30 00:57:42 +01:00
2013-01-19 02:11:37 +00:00
2013-05-20 19:06:08 -07:00
2013-08-13 11:00:48 +01:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-08-12 15:44:22 +01:00
2013-07-29 13:06:57 -04:00
2014-03-27 12:21:38 -07:00
2013-01-19 02:11:37 +00:00
2013-02-23 13:53:20 -05:00
2013-11-24 22:21:56 +01:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-23 13:53:20 -05:00
2013-02-22 21:58:12 -05:00
2013-02-18 11:03:51 -05:00
2013-03-19 19:01:56 -04:00
2013-01-19 02:11:37 +00:00
2013-02-14 16:35:30 -05:00
2013-04-15 16:33:00 -07:00
2013-05-25 19:11:27 -04:00
2013-11-24 22:21:56 +01:00
2013-02-18 11:03:51 -05:00
2013-02-25 17:02:36 +00:00
2014-07-29 23:32:14 +04:00
2013-05-21 15:27:45 -07:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-01-19 02:27:43 +00:00
2014-05-09 23:04:02 +01:00
2013-02-18 11:03:51 -05:00
2014-05-20 06:00:36 +02:00
2013-01-19 02:11:37 +00:00
2013-01-19 02:11:37 +00:00
2013-01-19 02:11:37 +00:00
2013-02-23 20:55:54 +01:00
2013-01-19 16:51:56 +07:00
2013-03-15 08:16:02 -04:00
2014-06-18 16:29:13 -07:00
2014-06-29 19:17:17 -07:00
2013-02-23 13:53:20 -05:00
2013-02-10 22:57:43 +00:00
2014-01-17 10:49:52 +01:00
2013-02-12 22:35:45 -05:00
2013-01-19 02:11:37 +00:00
2013-02-23 00:01:19 -05:00
2013-11-24 22:21:56 +01:00
2014-04-03 11:38:11 +01:00
2014-04-03 11:38:11 +01:00
2013-02-18 11:03:51 -05:00
2013-03-08 08:54:00 -05:00
2013-02-18 11:03:51 -05:00
2013-01-19 02:11:37 +00:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-11-24 22:21:56 +01:00
2013-06-12 12:31:30 +01:00
2013-02-18 11:03:51 -05:00
2014-03-23 17:05:57 -07:00
2014-06-19 21:05:06 -07:00
2013-02-18 11:03:51 -05:00
2013-10-29 01:20:00 -07:00
2013-04-16 15:21:30 -07:00
2013-04-07 20:50:50 -04:00
2013-01-19 16:51:56 +07:00
2013-01-19 16:51:56 +07:00
2012-07-28 12:50:17 +02:00
2013-01-19 02:11:37 +00:00
2013-02-18 11:03:51 -05:00
2013-03-06 10:19:26 -05:00
2013-02-18 11:03:51 -05:00
2013-01-19 02:11:37 +00:00
2013-01-19 16:51:56 +07:00
2013-02-18 11:03:51 -05:00
2013-01-19 02:11:37 +00:00
2013-11-24 22:21:56 +01:00
2013-02-23 16:02:05 -05:00
2013-02-24 18:51:22 -05:00
2013-01-19 02:11:37 +00:00
2013-02-18 11:03:51 -05:00
2013-01-19 02:11:37 +00:00
2013-02-18 11:03:51 -05:00
2013-02-23 10:24:29 -05:00
2013-01-19 02:11:37 +00:00
2013-11-24 22:21:56 +01:00
2013-02-19 17:25:29 -05:00
2013-11-24 22:21:56 +01:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-11-24 22:21:56 +01:00
2013-02-23 13:53:20 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-02-18 11:03:51 -05:00
2013-10-15 14:03:26 -07:00
2013-02-18 11:03:51 -05:00
2010-12-02 11:44:42 -08:00
2013-01-19 02:11:37 +00:00
2014-03-01 23:11:24 -08:00
2013-11-24 22:21:56 +01:00
2014-02-20 17:30:27 -08:00
2014-05-12 16:04:00 +01:00
2013-08-19 22:31:21 +01:00
2013-02-18 11:03:51 -05:00
2013-02-26 16:06:02 +01:00