Masayuki Nakano
5dbefe59ac
Bug 1280053 TextInputHandler should initialize WidgetKeyboardEvent without already handled characters r=m_kato
...
TextInputHandler may dispatch keypress events after InsertText() is called if there was composition and it's committed by "current" keydown event. In that case, [NSEvent characters] may have the committing string. For example, when Opt+e of US keyboard layout started composition, Cmd+v causes committing the "`" character and pasting the clipboard text. Then, the "v" key's keydown event's |characters| is "`v". So, after InsertText() is called with "`", TextInputHandler shouldn't dispatch keypress event for "`" again. I.e., the KeyboardEvent.key value should be "v" rather than "`v".
For solving this issue, TextInputHandlerBase::AutoInsertStringClearer which is created at every InsertText() call should store the inserted string to TextInputHandlerBase::KeyEventState. However, for making the implemntation simpler, it should recode only when the inserting string is actually a part of [mKeyEvent characters]. Then, TextInputHandlerBase::KeyEventState can compute unhandled insert string at initializing WidgetKeyboardEvent.
So, finally, TextInputHandlerBase::InitKeyEvent() should be called via TextInputHandlerBase::KeyEventState::InitKeyEvent(). This ensures that all key events which may cause InsertText() calls are always initialized with unhandled string.
MozReview-Commit-ID: A9o8o9pV2XV
2016-06-19 01:13:16 +09:00
..
2016-06-21 14:04:00 -07:00
2016-06-19 01:13:16 +09:00
2015-03-10 05:54:59 -05:00
2016-06-16 08:43:51 +01:00
2016-06-21 14:51:03 +02:00
2016-05-14 00:54:55 -07:00
2016-06-06 16:10:28 +01:00
2016-06-16 14:10:49 +09:00
2016-06-10 13:32:01 +01:00
2016-06-15 17:10:38 +09:00
2016-05-14 00:54:55 -07:00
2016-05-14 00:54:55 -07:00
2016-05-27 10:35:48 +12:00
2016-05-17 05:36:33 -07:00
2016-05-12 07:23:11 -07:00
2016-06-14 21:06:34 +09:00
2016-06-14 21:06:34 +09:00
2016-04-13 14:16:42 +08:00
2016-06-04 09:49:21 +09:00
2016-05-30 18:52:00 +02:00
2015-07-13 08:25:42 -07:00
2016-06-03 16:13:08 -04:00
2016-06-03 16:13:08 -04:00
2016-06-03 16:13:08 -04:00
2016-05-10 11:49:16 -07:00
2015-01-24 16:38:08 +01:00
2015-07-13 08:25:42 -07:00
2015-07-13 08:25:42 -07:00
2016-06-03 16:13:08 -04:00
2016-04-13 17:12:47 -04:00
2016-06-01 22:14:41 +09:00
2016-06-07 11:07:55 -04:00
2016-06-07 11:07:55 -04:00
2015-09-25 00:59:00 +02:00
2016-05-12 13:28:31 +09:00
2016-05-10 23:29:14 +09:00
2016-06-20 15:55:00 +02:00
2015-02-04 11:01:19 +09:00
2016-06-02 15:55:53 +02:00
2015-04-23 15:10:30 -04:00
2016-04-25 17:23:21 -07:00
2015-08-11 06:10:46 -07:00
2016-01-20 14:45:00 +01:00
2016-01-20 14:45:00 +01:00
2016-06-10 02:24:08 -04:00
2016-06-10 02:24:08 -04:00
2016-04-25 17:23:21 -07:00
2016-01-30 09:05:36 -08:00
2016-02-05 16:29:33 +00:00
2016-02-05 16:29:33 +00:00
2016-06-10 13:04:31 -07:00
2016-06-05 07:59:38 -05:00
2015-05-21 21:50:09 +01:00
2016-06-16 00:57:46 +08:00
2015-03-21 12:28:04 -04:00
2016-01-30 09:05:36 -08:00
2015-03-27 18:52:19 +00:00
2016-06-20 15:55:00 +02:00
2016-06-20 15:55:00 +02:00
2016-06-20 15:55:00 +02:00
2016-06-16 17:28:50 +01:00
2016-06-03 11:27:31 +01:00
2016-06-15 13:49:13 +01:00
2015-10-21 22:16:40 +13:00
2016-04-18 03:32:30 -04:00
2016-03-20 11:56:10 +01:00
2016-06-21 13:13:11 +09:00
2016-01-30 09:05:36 -08:00
2015-08-11 06:10:46 -07:00
2016-05-12 12:07:45 +12:00
2015-04-16 16:14:35 -04:00
2015-05-21 21:50:09 +01:00
2016-01-30 09:05:36 -08:00
2016-06-20 15:55:00 +02:00
2016-06-10 13:32:01 +01:00
2015-06-05 11:29:30 +08:00
2015-10-18 01:24:48 -04:00
2015-10-18 01:24:48 -04:00
2016-06-10 02:24:08 -04:00
2015-04-08 21:48:11 +03:00
2016-01-30 09:05:36 -08:00
2016-05-26 18:25:22 -04:00
2016-04-19 20:09:37 +09:00
2015-04-21 17:04:57 +02:00
2016-01-30 09:05:36 -08:00
2016-05-16 10:40:54 +01:00
2016-01-05 10:08:57 +00:00
2016-04-06 09:53:00 +02:00
2016-05-16 10:40:54 +01:00
2016-01-22 16:05:19 +00:00
2015-04-21 17:04:57 +02:00
2016-02-05 16:29:33 +00:00
2016-01-12 11:08:33 -06:00
2016-06-10 02:24:08 -04:00
2016-06-08 08:38:45 -05:00
2016-04-13 16:59:15 -04:00
2016-04-13 16:59:15 -04:00
2015-06-16 19:51:29 +01:00
2016-01-30 09:05:36 -08:00
2016-05-18 11:07:47 -07:00
2016-02-02 17:36:30 +02:00
2016-04-21 14:11:14 -04:00
2015-10-20 12:06:27 +03:00
2016-06-02 10:53:32 +01:00
2016-01-05 10:08:57 +00:00
2016-01-05 10:08:57 +00:00
2016-04-06 09:53:00 +02:00
2016-04-06 09:53:00 +02:00
2016-05-05 01:45:00 -07:00
2015-10-18 01:24:48 -04:00
2016-03-08 11:18:13 -05:00
2016-04-19 21:51:25 +01:00
2016-06-10 02:24:08 -04:00
2016-06-10 02:24:08 -04:00
2015-05-12 01:26:01 -04:00
2016-06-20 15:55:00 +02:00
2016-06-09 13:30:44 +02:00
2016-06-09 13:30:44 +02:00
2016-03-30 10:20:45 -07:00
2016-03-30 10:20:45 -07:00
2016-06-03 18:56:04 +09:00
2016-06-03 18:56:04 +09:00
2016-06-07 09:39:56 +10:00
2016-04-26 17:18:04 +09:00
2016-05-05 01:45:00 -07:00
2015-10-18 01:24:48 -04:00
2016-01-30 09:05:36 -08:00
2015-10-26 09:29:54 +09:00
2016-06-03 19:15:21 +09:00
2016-06-03 19:15:21 +09:00
2016-03-16 13:47:48 +09:00
2016-06-16 14:10:49 +09:00
2016-06-20 16:34:40 +09:00
2016-05-14 18:03:50 -07:00
2016-05-05 01:45:00 -07:00
2015-10-18 01:24:48 -04:00
2016-06-09 19:29:29 +09:00
2016-05-27 09:57:38 -07:00
2015-07-13 08:25:42 -07:00
2016-06-03 18:56:04 +09:00
2016-05-19 17:47:49 +09:00