From 11456f2556c9ba2c6b37d8bad4492c9715ecac50 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Fri, 9 Apr 1999 19:53:50 +0000 Subject: [PATCH] Fix for editor bug 3249. Second non-text key doesn't get through. --- widget/src/gtk/nsGtkEventHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget/src/gtk/nsGtkEventHandler.cpp b/widget/src/gtk/nsGtkEventHandler.cpp index ead4c2da8191..1f5fd1600a07 100644 --- a/widget/src/gtk/nsGtkEventHandler.cpp +++ b/widget/src/gtk/nsGtkEventHandler.cpp @@ -716,6 +716,8 @@ gint handle_key_release_event(GtkWidget *w, GdkEventKey* event, gpointer p) win->OnKey(kevent); win->Release(); + gtk_signal_emit_stop_by_name (GTK_OBJECT(w), "key_release_event"); + return PR_TRUE; } @@ -739,6 +741,8 @@ gint handle_key_press_event(GtkWidget *w, GdkEventKey* event, gpointer p) win->OnKey(kevent); win->Release(); + gtk_signal_emit_stop_by_name (GTK_OBJECT(w), "key_press_event"); + return PR_TRUE; }