зеркало из https://github.com/mozilla/gecko-dev.git
Bug 192729. Tabs that are still loading or have error block all keyboard shortcuts. r=bryner, sr=roc+moz
This commit is contained in:
Родитель
a0751e808f
Коммит
df20768272
|
@ -6150,6 +6150,12 @@ PresShell::HandleEvent(nsIView *aView,
|
||||||
return HandleEventInternal(aEvent, aView,
|
return HandleEventInternal(aEvent, aView,
|
||||||
NS_EVENT_FLAG_INIT, aEventStatus);
|
NS_EVENT_FLAG_INIT, aEventStatus);
|
||||||
}
|
}
|
||||||
|
else if (NS_IS_KEY_EVENT(aEvent)) {
|
||||||
|
// Keypress events in new blank tabs should not be completely thrown away.
|
||||||
|
// Retarget them -- the parent chrome shell might make use of them.
|
||||||
|
return RetargetEventToParent(aView, aEvent, aEventStatus, aForceHandle,
|
||||||
|
aHandled, mCurrentEventContent);
|
||||||
|
}
|
||||||
|
|
||||||
aHandled = PR_FALSE;
|
aHandled = PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6150,6 +6150,12 @@ PresShell::HandleEvent(nsIView *aView,
|
||||||
return HandleEventInternal(aEvent, aView,
|
return HandleEventInternal(aEvent, aView,
|
||||||
NS_EVENT_FLAG_INIT, aEventStatus);
|
NS_EVENT_FLAG_INIT, aEventStatus);
|
||||||
}
|
}
|
||||||
|
else if (NS_IS_KEY_EVENT(aEvent)) {
|
||||||
|
// Keypress events in new blank tabs should not be completely thrown away.
|
||||||
|
// Retarget them -- the parent chrome shell might make use of them.
|
||||||
|
return RetargetEventToParent(aView, aEvent, aEventStatus, aForceHandle,
|
||||||
|
aHandled, mCurrentEventContent);
|
||||||
|
}
|
||||||
|
|
||||||
aHandled = PR_FALSE;
|
aHandled = PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче