Bug #169094. Regression: " In Composer(edit html),Insert image,link and table not work." Patch from robin.lu@sun.com. Not part of the default build.

This commit is contained in:
blizzard%redhat.com 2002-09-24 01:17:19 +00:00
Родитель 0deed425f8
Коммит 3081203245
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -1216,8 +1216,10 @@ nsWindow::OnButtonPressEvent(GtkWidget *aWidget, GdkEventButton *aEvent)
nsEventStatus status;
// check to see if we should rollup
gJustGotActivate = PR_TRUE;
SetFocus(PR_FALSE);
if (gJustGotActivate) {
gJustGotActivate = PR_FALSE;
DispatchActivateEvent();
}
if (check_for_rollup(aEvent->window, aEvent->x_root, aEvent->y_root,
PR_FALSE))
return;
@ -1299,6 +1301,7 @@ nsWindow::OnContainerFocusOutEvent(GtkWidget *aWidget, GdkEventFocus *aEvent)
mFocusChild->LoseFocus();
mFocusChild->DispatchDeactivateEvent();
mFocusChild = nsnull;
gJustGotActivate = PR_TRUE;
}
}