From 2a9dbc7ef9f79afc07c5d2b74a2812dca6e4e561 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Thu, 19 Jul 2012 18:02:49 -0400 Subject: Only try to handle keys in query editor if not handled This fixes the search entry grabbing pasted URLs. https://bugzilla.gnome.org/show_bug.cgi?id=680159 --- src/nautilus-window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 5f7d74bc0..3e8ccdca7 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1454,12 +1454,16 @@ nautilus_window_key_press_event (GtkWidget *widget, } } + if (GTK_WIDGET_CLASS (nautilus_window_parent_class)->key_press_event (widget, event)) { + return TRUE; + } + if (nautilus_window_slot_handle_event (window->details->active_slot, event)) { toggle_toolbar_search_button (window, TRUE); return TRUE; } - return GTK_WIDGET_CLASS (nautilus_window_parent_class)->key_press_event (widget, event); + return FALSE; } /* -- cgit v1.2.1