summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-08-08 10:36:48 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2021-12-22 01:38:47 +0000
commita0203f826ef94831cc2d4426cd09c0fd3bf878c9 (patch)
tree37705b83b445509c696145a64bed79c665bea724
parent058857392846aeda6adae5f4d3335c755b3d715d (diff)
downloadnautilus-a0203f826ef94831cc2d4426cd09c0fd3bf878c9.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.c9
-rw-r--r--src/nautilus-window.c1
2 files changed, 8 insertions, 2 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index d4da30fa5..5d783c0f1 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -1113,6 +1113,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 (),
@@ -1142,7 +1149,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 940cbeeb4..3ed6ecd19 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -179,7 +179,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" },