diff options
author | Cristian Nancu <nancucristian@yahoo.com> | 2017-01-04 18:33:04 +0000 |
---|---|---|
committer | Razvan Chitu <razvan.ch95@gmail.com> | 2017-01-12 22:55:29 +0200 |
commit | 3c00fa343ec5b642846bc4c280cec7bb18a299a3 (patch) | |
tree | 2c5e19317d75aa062e39d0bf5496b87629265651 /src/nautilus-files-view.c | |
parent | 53cee1de89c5bd9fe2d0c3b68ba78583c7fae6e6 (diff) | |
download | nautilus-3c00fa343ec5b642846bc4c280cec7bb18a299a3.tar.gz |
files-view: Add alternative shortcut for renaming files
The current shortcut for renaming is F2. However, some keyboards
do not have Fn keys. In order to fix this, add Ctrl+M as an
alternative shortcut.
https://bugzilla.gnome.org/show_bug.cgi?id=763727
Diffstat (limited to 'src/nautilus-files-view.c')
-rw-r--r-- | src/nautilus-files-view.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 275d0769c..8498cb3dd 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -9049,6 +9049,12 @@ nautilus_files_view_init (NautilusFilesView *view) "<control>plus", NULL }; + const gchar *rename_shortcuts[] = + { + "<control>m", + "F2", + NULL + }; nautilus_profile_start (NULL); @@ -9249,7 +9255,7 @@ nautilus_files_view_init (NautilusFilesView *view) nautilus_application_set_accelerator (app, "view.permanent-delete-permanently-menu-item", "<shift>Delete"); nautilus_application_set_accelerators (app, "view.properties", open_properties); nautilus_application_set_accelerator (app, "view.open-item-location", "<control><alt>o"); - nautilus_application_set_accelerator (app, "view.rename", "F2"); + nautilus_application_set_accelerators (app, "view.rename", rename_shortcuts); nautilus_application_set_accelerator (app, "view.cut", "<control>x"); nautilus_application_set_accelerator (app, "view.copy", "<control>c"); nautilus_application_set_accelerator (app, "view.create-link-in-place", "<control><shift>m"); |