[nautilus] Use ctrl-delete as the keyboard shortcut to trash files



commit cce40272e35b20b4aaf5f93109a05b7bb89704d5
Author: Giorgio F. Gilestro <giorgio gilestro tk>
Date:   Fri Apr 1 14:53:41 2011 +0200

    Use ctrl-delete as the keyboard shortcut to trash files
    
    This change was made to make it harder to accidentally trigger a file
    delete. We still support the trash that will let you get a trashed file
    back, and we will get undo support to make this even easier. However,
    that only works if you know you deleted the wrong file, not if you
    accidentally hit delete while the nautilus window was focused.

 src/nautilus-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index f3f2360..147f41e 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -7048,7 +7048,7 @@ static const GtkActionEntry directory_view_entries[] = {
   /* label, accelerator */       "RenameSelectAll", "<shift>F2",
   /* tooltip */                  NULL,
 				 G_CALLBACK (action_rename_select_all_callback) },
-  /* name, stock id */         { "Trash", NULL,
+  /* name, stock id */         { "Trash", "<control>Delete",
   /* label, accelerator */       N_("Mo_ve to Trash"), NULL,
   /* tooltip */                  N_("Move each selected item to the Trash"),
 				 G_CALLBACK (action_trash_callback) },
@@ -9730,9 +9730,9 @@ nautilus_view_class_init (NautilusViewClass *klass)
 	g_object_class_install_properties (oclass, NUM_PROPERTIES, properties);
 
 	binding_set = gtk_binding_set_by_class (klass);
-	gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, 0,
+	gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_CONTROL_MASK,
 				      "trash", 0);
-	gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, 0,
+	gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, GDK_CONTROL_MASK,
 				      "trash", 0);
 	gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, GDK_SHIFT_MASK,
 				      "delete", 0);



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