Bug 192729. Tabs that are still loading or have error block all keyboard shortcuts. r=bryner, sr=roc+moz

This commit is contained in:
aaronl%netscape.com 2003-07-24 08:48:59 +00:00
Родитель a0751e808f
Коммит df20768272
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -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;
} }