[nautilus] Eat Control + v to not enable type ahead (#350819)



commit f12805d978c576e5f93f48815565f6e02fdd38ff
Author: Marcus Carlson <mdc src gnome org>
Date:   Sat Jul 10 10:55:16 2010 +0200

    Eat Control + v to not enable type ahead (#350819)

 libnautilus-private/nautilus-icon-container.c |    6 ++++++
 src/file-manager/fm-list-view.c               |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 4ce95a4..daae378 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -5472,6 +5472,12 @@ key_press_event (GtkWidget *widget,
 							 "context_click_background");
 			}
 			break;
+		case GDK_v:
+			/* Eat Control + v to not enable type ahead */
+			if ((event->state & GDK_CONTROL_MASK) != 0) {
+				handled = TRUE;
+			}
+			break;
 		default:
 			break;
 		}
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 5d23d7f..a0f5d5b 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -1018,6 +1018,12 @@ key_press_callback (GtkWidget *widget, GdkEventKey *event, gpointer callback_dat
 		}
 		handled = TRUE;
 		break;
+	case GDK_v:
+		/* Eat Control + v to not enable type ahead */
+		if ((event->state & GDK_CONTROL_MASK) != 0) {
+			handled = TRUE;
+		}
+		break;
 
 	default:
 		handled = FALSE;



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