diff options
author | António Fernandes <antoniof@gnome.org> | 2021-08-08 10:36:48 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2021-08-16 10:18:38 +0100 |
commit | 77e30324f7c805d4ff950350e03224e4bd5f65d7 (patch) | |
tree | 67c7e9a3c0976a8dba4419a350b3bf6e0a6abb5e | |
parent | 3f653f3cdc49a69c1f05e53aa6db330e19f5aed0 (diff) | |
download | nautilus-77e30324f7c805d4ff950350e03224e4bd5f65d7.tar.gz |
window-slot: Add media key accel for search
This accelerator has been set for a "win.search" action which
presumably used to exist in the past, but doesn't anymore.
Move it to the "slot.search-active" action.
-rw-r--r-- | src/nautilus-window-slot.c | 9 | ||||
-rw-r--r-- | src/nautilus-window.c | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 4f93f67c8..8d6a4cde3 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1126,6 +1126,13 @@ static void nautilus_window_slot_init (NautilusWindowSlot *self) { GApplication *app; + const gchar *search_visible_accels[] = + { + "<control>f", + "Search", + NULL + }; + app = g_application_get_default (); g_signal_connect (nautilus_trash_monitor_get (), @@ -1155,7 +1162,7 @@ nautilus_window_slot_init (NautilusWindowSlot *self) nautilus_application_set_accelerator (app, "slot.files-view-mode(uint32 " G_STRINGIFY (NAUTILUS_VIEW_GRID_ID) ")", "<control>2"); - nautilus_application_set_accelerator (app, "slot.search-visible", "<control>f"); + nautilus_application_set_accelerators (app, "slot.search-visible", search_visible_accels); self->view_mode_before_search = NAUTILUS_VIEW_INVALID_ID; } diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 54566b94d..0a02347f4 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -178,7 +178,6 @@ static const struct { GDK_KEY_OpenURL, "enter-location" }, { GDK_KEY_Refresh, "reload" }, { GDK_KEY_Reload, "reload" }, - { GDK_KEY_Search, "search" }, { GDK_KEY_Start, "go-home" }, { GDK_KEY_Stop, "stop" }, { GDK_KEY_Back, "back" }, |