зеркало из https://github.com/mozilla/gecko-dev.git
Bug 841507 - Mask events when removing composition; r=cpeterson
This commit is contained in:
Родитель
36ccde7841
Коммит
a491f68c29
|
@ -1959,6 +1959,15 @@ nsWindow::OnIMEEvent(AndroidGeckoEvent *ae)
|
|||
break;
|
||||
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();
|
||||
mIMERanges.Clear();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче