mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 307172. Focus never returns when a link having focus is hidden. r+sr=bryner
This commit is contained in:
parent
8fac8ff0f0
commit
cb2afa53b3
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user