[epiphany] ephy-window: Add CtrlK shortcut for searching



commit e74c6f5a33cf0e00511e805f59c0ea4af172a7e6
Author: Yetizone <andreii lisita gmail com>
Date:   Fri Feb 21 21:10:55 2020 +0200

    ephy-window: Add CtrlK shortcut for searching
    
    Closes https://gitlab.gnome.org/GNOME/epiphany/issues/1088

 src/resources/gtk/shortcuts-dialog.ui | 7 +++++++
 src/window-commands.c                 | 8 ++++++++
 src/window-commands.h                 | 3 +++
 3 files changed, 18 insertions(+)
---
diff --git a/src/resources/gtk/shortcuts-dialog.ui b/src/resources/gtk/shortcuts-dialog.ui
index 57a4d31c9..a7859dda2 100644
--- a/src/resources/gtk/shortcuts-dialog.ui
+++ b/src/resources/gtk/shortcuts-dialog.ui
@@ -361,6 +361,13 @@
                 <property name="accelerator">&lt;Primary&gt;L</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Search with default 
search engine</property>
+                <property name="accelerator">&lt;Primary&gt;K</property>
+              </object>
+            </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">True</property>
diff --git a/src/window-commands.c b/src/window-commands.c
index 92401029b..501724ed3 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -2164,6 +2164,14 @@ window_cmd_go_location (GSimpleAction *action,
   ephy_window_activate_location (user_data);
 }
 
+void
+window_cmd_location_search (GSimpleAction *action,
+                            GVariant      *parameter,
+                            gpointer       user_data)
+{
+  ephy_window_location_search (user_data);
+}
+
 void
 window_cmd_go_home (GSimpleAction *action,
                     GVariant      *parameter,
diff --git a/src/window-commands.h b/src/window-commands.h
index 7cc0f230b..59d6af87f 100644
--- a/src/window-commands.h
+++ b/src/window-commands.h
@@ -155,6 +155,9 @@ void window_cmd_send_to                         (GSimpleAction *action,
 void window_cmd_go_location                     (GSimpleAction *action,
                                                  GVariant      *parameter,
                                                  gpointer       user_data);
+void window_cmd_location_search                 (GSimpleAction *action,
+                                                 GVariant      *parameter,
+                                                 gpointer       user_data);
 void window_cmd_go_home                         (GSimpleAction *action,
                                                  GVariant      *parameter,
                                                  gpointer       user_data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]