[PATCH] Shift close-behind in list view



This patch makes Shift+Enter and Shift+Space close window behind in the
list view (closes #139324).

Martin


Index: src/file-manager/fm-list-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-list-view.c,v
retrieving revision 1.223
diff -u -p -r1.223 fm-list-view.c
--- src/file-manager/fm-list-view.c	9 Apr 2004 21:18:45 -0000	1.223
+++ src/file-manager/fm-list-view.c	14 Apr 2004 21:35:10 -0000
@@ -750,12 +750,20 @@ key_press_callback (GtkWidget *widget, G
 			handled = FALSE;
 			break;
 		}
-		activate_selected_items (FM_LIST_VIEW (view));
+		if ((event->state & GDK_SHIFT_MASK) != 0) {
+			activate_selected_items_alternate (FM_LIST_VIEW (view), NULL);
+		} else {
+			activate_selected_items (FM_LIST_VIEW (view));
+		}
 		handled = TRUE;
 		break;
 	case GDK_Return:
 	case GDK_KP_Enter:
-		activate_selected_items (FM_LIST_VIEW (view));
+		if ((event->state & GDK_SHIFT_MASK) != 0) {
+			activate_selected_items_alternate (FM_LIST_VIEW (view), NULL);
+		} else {
+			activate_selected_items (FM_LIST_VIEW (view));
+		}
 		handled = TRUE;
 		break;
 


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