зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e6a5d40f61
Коммит
2212f1abab
|
@ -3147,6 +3147,13 @@ nsWidget::IMEDestroyIC()
|
||||||
if (!mXIC) return;
|
if (!mXIC) return;
|
||||||
if (mIsToplevel == PR_TRUE) {
|
if (mIsToplevel == PR_TRUE) {
|
||||||
delete mXIC;
|
delete mXIC;
|
||||||
|
} else {
|
||||||
|
// see discussion in bug 53989
|
||||||
|
nsWidget *widget = mXIC->GetFocusWidget();
|
||||||
|
if (widget && widget == this && mIMEShellWidget) {
|
||||||
|
mXIC->SetFocusWidget(mIMEShellWidget);
|
||||||
|
mXIC->UnsetFocusWidget();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mXIC = 0;
|
mXIC = 0;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче