diff options
author | Dave Camp <dave@ximian.com> | 2004-04-01 23:27:09 +0000 |
---|---|---|
committer | Dave Camp <campd@src.gnome.org> | 2004-04-01 23:27:09 +0000 |
commit | 5b3704358cc35041208b892aa9cd7b55229aa031 (patch) | |
tree | 888214e6fb05bcf43cd900366e0b9e3314366077 /libnautilus-private/nautilus-icon-container.c | |
parent | 7ad83c63c86f5c279183fed04c42bcfd16063f78 (diff) | |
download | nautilus-5b3704358cc35041208b892aa9cd7b55229aa031.tar.gz |
Make Shift+Enter and Shift+Space close window behind.
2004-04-01 Dave Camp <dave@ximian.com>
* libnautilus-private/nautilus-icon-container.c: (keyboard_space),
(key_press_event): Make Shift+Enter and Shift+Space close window
behind.
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 9 |
1 files changed, 8 insertions, 1 deletions
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: |