[nautilus] Don't eat Alt+Right/Left in icon container



commit 1f6f65c9547b430eb1414758a50d2aeea142869e
Author: Marcus Carlson <marcus mejlamej nu>
Date:   Mon Jul 5 23:32:29 2010 +0200

    Don't eat Alt+Right/Left in icon container
    
    So they do not interfere with history browsing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=411664

 libnautilus-private/nautilus-icon-container.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 061ba88..4ce95a4 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -5396,8 +5396,11 @@ key_press_event (GtkWidget *widget,
 			break;
 		case GDK_Left:
 		case GDK_KP_Left:
-			keyboard_left (container, event);
-			handled = TRUE;
+			/* Don't eat Alt-Left, as that is used for history browsing */
+			if ((event->state & GDK_MOD1_MASK) == 0) {
+				keyboard_left (container, event);
+				handled = TRUE;
+			}
 			break;
 		case GDK_Up:
 		case GDK_KP_Up:
@@ -5409,8 +5412,11 @@ key_press_event (GtkWidget *widget,
 			break;
 		case GDK_Right:
 		case GDK_KP_Right:
-			keyboard_right (container, event);
-			handled = TRUE;
+			/* Don't eat Alt-Right, as that is used for history browsing */
+			if ((event->state & GDK_MOD1_MASK) == 0) {
+				keyboard_right (container, event);
+				handled = TRUE;
+			}
 			break;
 		case GDK_Down:
 		case GDK_KP_Down:



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