Bug 841507 - Mask events when removing composition; r=cpeterson

This commit is contained in:
Jim Chen 2013-02-18 14:06:04 -05:00
Родитель 36ccde7841
Коммит a491f68c29
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1959,6 +1959,15 @@ nsWindow::OnIMEEvent(AndroidGeckoEvent *ae)
break; break;
case AndroidGeckoEvent::IME_REMOVE_COMPOSITION: case AndroidGeckoEvent::IME_REMOVE_COMPOSITION:
{ {
/*
* Remove any previous composition. This is only used for
* visual indication and does not affect the text content.
*
* Selection and text updates are masked so the result of
* temporary events are not passed on to Java
*/
AutoIMEMask selMask(mIMEMaskSelectionUpdate);
AutoIMEMask textMask(mIMEMaskTextUpdate);
RemoveIMEComposition(); RemoveIMEComposition();
mIMERanges.Clear(); mIMERanges.Clear();
} }