зеркало из https://github.com/mozilla/gecko-dev.git
back out changes described in bug #46901 since it breaks DOM key press events as described in bug #14856. a=brendan
This commit is contained in:
Родитель
f784213517
Коммит
f9073b1bd7
|
@ -678,18 +678,20 @@ gint handle_key_release_event(GtkObject *w, GdkEventKey* event, gpointer p)
|
|||
// exact same timestamp as the current event.
|
||||
|
||||
// get a copy of the next event
|
||||
nextEvent = gdk_event_peek();
|
||||
nextEvent = gdk_event_get();
|
||||
// see if it's a key press event and if the time matches.
|
||||
if (nextEvent)
|
||||
{
|
||||
if ((nextEvent->type == GDK_KEY_PRESS) && (nextEvent->key.time == event->time))
|
||||
if ((nextEvent->type == GDK_KEY_PRESS) &&
|
||||
(nextEvent->key.time == event->time))
|
||||
{
|
||||
shouldDrop = PR_TRUE;
|
||||
// the next key press event shouldn't generate a key down event.
|
||||
// this is a global variable
|
||||
suppressNextKeyDown = PR_TRUE;
|
||||
}
|
||||
|
||||
// put makes a copy so we're safe doing this.
|
||||
gdk_event_put(nextEvent);
|
||||
// free the event since we just got a copy.
|
||||
gdk_event_free(nextEvent);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче