fix bug 22581, force IME to commit when we lost focus. r=nhotta

This commit is contained in:
ftang%netscape.com 2000-01-04 21:04:43 +00:00
Родитель 9f0327cb29
Коммит 60519a08b4
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -119,6 +119,7 @@ void nsMacEventDispatchHandler::SetFocus(nsWindow *aFocusedWidget)
// tell the old widget it is not focused
if (mActiveWidget)
{
mActiveWidget->ResetInputState();
mActiveWidget->RemoveDeleteObserver(this);
DispatchGuiEvent(mActiveWidget, NS_LOSTFOCUS);
}