Fix for bug 127368 (Can't type in textfields in pages with an iframe and body with marginheight and marginwidth=0)

Modified HandleEvent() to prevent forwarding KeyEvents to views with a different ViewManager.

r=roc+moz@cs.cmu.edu  sr=sfraser@netscape.com  a=shaver@mozilla.org
This commit is contained in:
kin%netscape.com 2002-02-28 22:30:01 +00:00
Родитель 2052ded204
Коммит eeff36aa38
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -2040,7 +2040,11 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
if (nsnull != obs) {
obs->HandleEvent(v, aEvent, &status, i == targetViews.Count() - 1, handled);
}
} else {
} else if (!NS_IS_KEY_EVENT(aEvent)) {
// Forward aEvent to v's ViewManager observer, but only if it
// isn't a key event, since that should always be dispatched
// to the widget that has focus.
nsIViewObserver* vobs = nsnull;
vVM->GetViewObserver(vobs);
if (nsnull != vobs) {