Fixing problem with an uninitialized member in a nsMouseEvent struct, this problem surfaced yesterday when the link handling was changed by pinkerton. The problem was that clicking on links on unix sometimes opened the link in a new window in stead of the current window. r=brade

This commit is contained in:
jst%netscape.com 2000-06-09 14:48:58 +00:00
Родитель 8bdcbf7a2b
Коммит ea678310c4
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -2318,6 +2318,7 @@ nsWidget::InitMouseEvent(GdkEventButton * aGdkButtonEvent,
anEvent.isShift = (aGdkButtonEvent->state & GDK_SHIFT_MASK) ? PR_TRUE : PR_FALSE;
anEvent.isControl = (aGdkButtonEvent->state & GDK_CONTROL_MASK) ? PR_TRUE : PR_FALSE;
anEvent.isAlt = (aGdkButtonEvent->state & GDK_MOD1_MASK) ? PR_TRUE : PR_FALSE;
anEvent.isMeta = PR_FALSE; // GTK+ doesn't support the meta key
anEvent.time = aGdkButtonEvent->time;
switch(aGdkButtonEvent->type)