mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
6a9211d8aa
commit
be39df6daf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user