Bug 271228: On GTK2, first press of modifier + key sends KEY_PRESS event but no KEY_DOWN. r=aaronleventhal, sr=neil.parkwaycc.co.uk

This commit is contained in:
smontagu%smontagu.org 2004-12-21 12:11:22 +00:00
Родитель 03e05c8243
Коммит 8b3fd19405
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1564,6 +1564,9 @@ nsWindow::OnKeyPressEvent(GtkWidget *aWidget, GdkEventKey *aEvent)
|| aEvent->keyval == GDK_Alt_R
|| aEvent->keyval == GDK_Meta_L
|| aEvent->keyval == GDK_Meta_R) {
// reset the key repeat flag so that the next keypress gets the
// key down event
mInKeyRepeat = PR_FALSE;
return TRUE;
}
nsKeyEvent event(NS_KEY_PRESS, this);