From be39df6daf3a6b27051b37ac2ee674ef33858e53 Mon Sep 17 00:00:00 2001 From: "smontagu%smontagu.org" Date: Tue, 21 Dec 2004 12:11:22 +0000 Subject: [PATCH] Bug 271228: On GTK2, first press of modifier + key sends KEY_PRESS event but no KEY_DOWN. r=aaronleventhal, sr=neil.parkwaycc.co.uk --- widget/src/gtk2/nsWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widget/src/gtk2/nsWindow.cpp b/widget/src/gtk2/nsWindow.cpp index f99f2ef5bfbe..e6ddbc335a73 100644 --- a/widget/src/gtk2/nsWindow.cpp +++ b/widget/src/gtk2/nsWindow.cpp @@ -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);