diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 2e2c4c0d..cf83bb86 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1784,12 +1784,14 @@ midori_browser_key_press_event (GtkWidget* widget, { GtkWindow* window = GTK_WINDOW (widget); GtkWidgetClass* widget_class; + guint clean_state; if (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)) if (sokoke_window_activate_key (window, event)) return TRUE; - if (!event->state && gtk_window_propagate_key_event (window, event)) + clean_state = event->state & gtk_accelerator_get_default_mod_mask(); + if (!clean_state && gtk_window_propagate_key_event (window, event)) return TRUE; if (!(event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)))