[nautilus] files-view: allow delete shortcut for delete permanently
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: allow delete shortcut for delete permanently
- Date: Thu, 15 Oct 2015 17:13:00 +0000 (UTC)
commit 89a11adc55d8bcf9ba01243c7f5f177398e5f582
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Oct 15 13:57:24 2015 +0200
files-view: allow delete shortcut for delete permanently
When trash is not supported.
https://bugzilla.gnome.org/show_bug.cgi?id=756536
src/nautilus-files-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index b9b1065..969725b 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -8078,6 +8078,10 @@ nautilus_files_view_init (NautilusFilesView *view)
nautilus_application_add_accelerator (app, "view.move-to-trash", "Delete");
nautilus_application_add_accelerator (app, "view.delete-from-trash", "Delete");
nautilus_application_add_accelerator (app, "view.delete-permanently-shortcut", "<shift>Delete");
+ /* When trash is not available, allow the delete shortcut to delete permanently, that is, when
+ * the menu item is available, since we never make both the trash and delete-permanently-menu-item
+ * actions active */
+ nautilus_application_add_accelerator (app, "view.delete-permanently-menu-item", "Delete");
nautilus_application_add_accelerator (app, "view.properties", "<control>i");
nautilus_application_add_accelerator (app, "view.open-item-location", "<control><alt>o");
nautilus_application_add_accelerator (app, "view.rename", "F2");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]