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
parent 6a9211d8aa
commit be39df6daf

View File

@ -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);