]> spindle.queued.net Git - midori/commitdiff
Don't propagate key events more than once
authorChristian Dywan <christian@twotoasts.de>
Fri, 26 Mar 2010 19:45:15 +0000 (20:45 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 26 Mar 2010 19:48:33 +0000 (20:48 +0100)
This fixes problems with dead keys used to type accented letters.

midori/midori-browser.c

index 68f658996f312ca2999abe552384d8af014fea33..2e2c4c0d2ee6899f4ec8d580b4dbf084dc08ee0d 100644 (file)
@@ -1789,7 +1789,7 @@ midori_browser_key_press_event (GtkWidget*   widget,
         if (sokoke_window_activate_key (window, event))
             return TRUE;
 
-    if (gtk_window_propagate_key_event (window, event))
+    if (!event->state && gtk_window_propagate_key_event (window, event))
         return TRUE;
 
     if (!(event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)))