Commit 3c00fa34 authored by Cristian Nancu's avatar Cristian Nancu Committed by Razvan Chitu

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
parent 53cee1de
......@@ -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");
......
......@@ -297,7 +297,7 @@
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Rename</property>
<property name="accelerator">F2</property>
<property name="accelerator">F2 &lt;Primary&gt;M</property>
</object>
</child>
<child>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment