bug 53989; written by katakai@japan.sun.com; r=erik; sr=brendan; this is a

workaround for a couple of popular Japanese input methods (see bug report)
This commit is contained in:
erik%netscape.com 2000-11-03 03:19:18 +00:00
Родитель e6a5d40f61
Коммит 2212f1abab
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -3147,6 +3147,13 @@ nsWidget::IMEDestroyIC()
if (!mXIC) return;
if (mIsToplevel == PR_TRUE) {
delete mXIC;
} else {
// see discussion in bug 53989
nsWidget *widget = mXIC->GetFocusWidget();
if (widget && widget == this && mIMEShellWidget) {
mXIC->SetFocusWidget(mIMEShellWidget);
mXIC->UnsetFocusWidget();
}
}
mXIC = 0;
}