[nautilus] Allow shift+return during typeahead find



commit f9585e4f4825ab1114cd4185ec8cdca9360da3c9
Author: Jonathon Jongsma <jonathon quotidian org>
Date:   Mon Apr 20 13:02:11 2009 +0200

    Allow shift+return during typeahead find
    
    Allow shift+rename to close parent + open when typeahead find window
    is active. (#579551)
---
 libnautilus-private/nautilus-icon-container.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index a3d50bf..d83a1b6 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -5124,6 +5124,15 @@ nautilus_icon_container_search_key_press_event (GtkWidget *widget,
 		return TRUE;
 	}
 
+	/* close window and activate alternate */
+	if (event->keyval == GDK_Return && event->state & GDK_SHIFT_MASK) {
+		nautilus_icon_container_search_dialog_hide (widget,
+							    container);
+
+		activate_selected_items_alternate (container, NULL);
+		return TRUE;
+	}
+
 	/* select previous matching iter */
 	if (event->keyval == GDK_Up || event->keyval == GDK_KP_Up) {
 		nautilus_icon_container_search_move (widget, container, TRUE);



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