[Webkit-unassigned] [Bug 136430] New: Key press signal fired twice

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 1 09:30:58 PDT 2014


           Summary: Key press signal fired twice
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Blocker
          Priority: P1
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: a1968190 at trbvm.com

webkit2gtk+ version: 2.4.4(heard that it reproducible on 2.4.5 too)

Can't properly bind key press events with created web view - it will be triggered twice,
doesn't matter if I bind my key press callback to window or to web view itself, reproduce with:

#include <gtk/gtk.h>
#include <webkit2/webkit2.h>

gboolean foo (GtkWidget *widget, GdkEvent *event, gpointer data) {
  printf("%s\n", event->key.string);

  return FALSE;

int main (int argc, char *argv[]) {
  gtk_init (&argc, &argv);
  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  GtkWidget *web_view = webkit_web_view_new ();

  g_signal_connect (web_view, "key-press-event", G_CALLBACK (foo), NULL);

  gtk_container_add (GTK_CONTAINER (window), web_view);

  gtk_widget_show_all (window);

  gtk_main ();

  return 0;

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list