[nautilus] Only try to handle keys in query editor if not handled



commit 2a9dbc7ef9f79afc07c5d2b74a2812dca6e4e561
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Jul 19 18:02:49 2012 -0400

    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 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 5f7d74b..3e8ccdc 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;
 }
 
 /*



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]