зеркало из https://github.com/mozilla/gecko-dev.git
Bug 307172. Focus never returns when a link having focus is hidden. r+sr=bryner
This commit is contained in:
Родитель
8fac8ff0f0
Коммит
cb2afa53b3
|
@ -5720,11 +5720,11 @@ PresShell::HandleEvent(nsIView *aView,
|
||||||
|
|
||||||
nsIEventStateManager *esm = mPresContext->EventStateManager();
|
nsIEventStateManager *esm = mPresContext->EventStateManager();
|
||||||
|
|
||||||
esm->GetFocusedContent(getter_AddRefs(mCurrentEventContent));
|
|
||||||
|
|
||||||
esm->GetFocusedFrame(&mCurrentEventFrame);
|
esm->GetFocusedFrame(&mCurrentEventFrame);
|
||||||
|
if (mCurrentEventFrame) {
|
||||||
if (!mCurrentEventFrame) {
|
esm->GetFocusedContent(getter_AddRefs(mCurrentEventContent));
|
||||||
|
}
|
||||||
|
else {
|
||||||
#if defined(MOZ_X11) || defined(XP_WIN)
|
#if defined(MOZ_X11) || defined(XP_WIN)
|
||||||
#if defined(MOZ_X11)
|
#if defined(MOZ_X11)
|
||||||
if (NS_IS_IME_EVENT(aEvent)) {
|
if (NS_IS_IME_EVENT(aEvent)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче