[nautilus] window: Trigger location entry also with the numpad slash key
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: Trigger location entry also with the numpad slash key
- Date: Mon, 29 Oct 2018 17:04:01 +0000 (UTC)
commit 7d5b6012ae274f6ea97ed4886e36707066ecaf26
Author: Germán <dev germanfr gmail com>
Date: Sun Oct 28 19:21:57 2018 +0100
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
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]