зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8bdcbf7a2b
Коммит
ea678310c4
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче