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