Bug 962920 nsTextStore should commit composition when WM_ENTERIDLE is received r=jimm

This commit is contained in:
Masayuki Nakano 2014-07-11 13:12:36 +09:00
parent 642fd1a624
commit 0a295cbf0b

View File

@ -3951,6 +3951,14 @@ nsTextStore::ProcessMessage(nsWindowBase* aWindow, UINT aMessage,
aLParam &= ~ISC_SHOWUICOMPOSITIONWINDOW;
}
break;
case WM_ENTERIDLE:
// When an modal dialog such as a file picker is open, composition
// should be committed because IME might be used on it.
if (!IsComposingOn(aWindow)) {
break;
}
CommitComposition(false);
break;
}
}