From: Christian Dywan Date: Sun, 29 Nov 2009 13:31:23 +0000 (+0100) Subject: Don't prioritize key presses because that breaks inline find X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ca507b3a2ad8246fae380e84656f0debe57074;p=midori Don't prioritize key presses because that breaks inline find This 'breaks' using single character shortcuts in conjunction with inline find, but we can live with that. --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 8afd16a8..2dc41e7e 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1733,13 +1733,7 @@ midori_browser_key_press_event (GtkWidget* widget, GdkEventKey* event) { GtkWindow* window = GTK_WINDOW (widget); - GtkWidget* focus = gtk_window_get_focus (window); GtkWidgetClass* widget_class; - gboolean priority = GTK_IS_EDITABLE (focus) || GTK_IS_TEXT_VIEW (focus) - || WEBKIT_IS_WEB_VIEW (focus); - - if (priority && !event->state && gtk_window_propagate_key_event (window, event)) - return TRUE; if (event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK)) if (sokoke_window_activate_key (window, event)) @@ -1752,7 +1746,7 @@ midori_browser_key_press_event (GtkWidget* widget, if (sokoke_window_activate_key (window, event)) return TRUE; - if (!priority && event->state && gtk_window_propagate_key_event (window, event)) + if (event->state && gtk_window_propagate_key_event (window, event)) return TRUE; widget_class = g_type_class_peek_static (g_type_parent (GTK_TYPE_WINDOW));