diff options
author | Germán <dev.germanfr@gmail.com> | 2018-10-28 19:21:57 +0100 |
---|---|---|
committer | Ernestas Kulik <ernestas.kulik@gmail.com> | 2018-10-29 16:48:46 +0000 |
commit | 7d5b6012ae274f6ea97ed4886e36707066ecaf26 (patch) | |
tree | 649436ac22a03b8286db80bda4d60421b6cf20df /src | |
parent | d4983562d6825fa47ae81bdcabc8b0cea0e498d5 (diff) | |
download | nautilus-7d5b6012ae274f6ea97ed4886e36707066ecaf26.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-window.c | 8 |
1 files changed, 7 insertions, 1 deletions
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"); |