[nautilus/gnome-3-30] window: Trigger location entry also with the numpad slash key
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-30] window: Trigger location entry also with the numpad slash key
- Date: Wed, 31 Oct 2018 10:26:39 +0000 (UTC)
commit 3aa9e1830547383600dc2da261885c664b95529f
Author: Germán <dev germanfr gmail com>
Date: Sun Oct 28 18:21:57 2018 +0000
window: Trigger location entry also with the numpad slash key
It is the same character in different keys.
This one is easier to use because only one finger is needed.
Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/712
(cherry picked from commit 7d5b6012ae274f6ea97ed4886e36707066ecaf26)
src/nautilus-window.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 7fe090987..18959598d 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2120,6 +2120,12 @@ nautilus_window_initialize_actions (NautilusWindow *window)
"<ctrl>r",
NULL
};
+ const gchar *prompt_root_location_accels[] =
+ {
+ "slash",
+ "KP_Divide",
+ NULL
+ };
const gchar *prompt_home_location_accels[] =
{
"asciitilde",
@@ -2151,7 +2157,7 @@ nautilus_window_initialize_actions (NautilusWindow *window)
nautilus_application_set_accelerator (app, "win.tab-next", "<control>Page_Down");
nautilus_application_set_accelerator (app, "win.tab-move-left", "<shift><control>Page_Up");
nautilus_application_set_accelerator (app, "win.tab-move-right", "<shift><control>Page_Down");
- nautilus_application_set_accelerator (app, "win.prompt-root-location", "slash");
+ nautilus_application_set_accelerators (app, "win.prompt-root-location", prompt_root_location_accels);
/* Support keyboard layouts which have a dead tilde key but not a tilde key. */
nautilus_application_set_accelerators (app, "win.prompt-home-location", prompt_home_location_accels);
nautilus_application_set_accelerator (app, "win.view-menu", "F10");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]