summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-07-19 18:02:49 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-07-19 20:30:09 -0400
commit2a9dbc7ef9f79afc07c5d2b74a2812dca6e4e561 (patch)
tree158930a0fe15d871cca3faff09e47f567c7e0430
parentdcc5696fe77456ecf149ae4eaa721dd826df4458 (diff)
downloadnautilus-2a9dbc7ef9f79afc07c5d2b74a2812dca6e4e561.tar.gz
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
-rw-r--r--src/nautilus-window.c6
1 files changed, 5 insertions, 1 deletions
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;
}
/*