From 5b3704358cc35041208b892aa9cd7b55229aa031 Mon Sep 17 00:00:00 2001 From: Dave Camp Date: Thu, 1 Apr 2004 23:27:09 +0000 Subject: Make Shift+Enter and Shift+Space close window behind. 2004-04-01 Dave Camp * libnautilus-private/nautilus-icon-container.c: (keyboard_space), (key_press_event): Make Shift+Enter and Shift+Space close window behind. --- libnautilus-private/nautilus-icon-container.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libnautilus-private/nautilus-icon-container.c') diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index e6d3c60c4..f87b71bcc 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -2795,6 +2795,8 @@ keyboard_space (NautilusIconContainer *container, } set_keyboard_focus (container, icon); } + } else if ((event->state & GDK_SHIFT_MASK) != 0) { + activate_selected_items_alternate (container, NULL); } else { activate_selected_items (container); } @@ -3790,7 +3792,12 @@ key_press_event (GtkWidget *widget, #endif case GDK_Return: case GDK_KP_Enter: - activate_selected_items (container); + if ((event->state & GDK_SHIFT_MASK) != 0) { + activate_selected_items_alternate (container, NULL); + } else { + activate_selected_items (container); + } + handled = TRUE; break; case GDK_Escape: -- cgit v1.2.1