[gnome-text-editor] sourceview: add keybindings to move through search results



commit 2d64c5bcae60a69a0804af3ff63f4d12579abf77
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jan 22 12:07:08 2022 -0800

    sourceview: add keybindings to move through search results
    
    These were missing from the sourceview and were only present on the
    search entry.
    
    Fixes #300

 src/editor-source-view.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/editor-source-view.c b/src/editor-source-view.c
index 4cea2a0..a017622 100644
--- a/src/editor-source-view.c
+++ b/src/editor-source-view.c
@@ -802,6 +802,8 @@ editor_source_view_class_init (EditorSourceViewClass *klass)
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_0, GDK_CONTROL_MASK, "page.zoom-one", NULL);
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_l, GDK_CONTROL_MASK, "buffer.select-line", 
NULL);
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_d, GDK_CONTROL_MASK, "buffer.delete-line", 
NULL);
+  gtk_widget_class_add_binding_action (widget_class, GDK_KEY_g, GDK_CONTROL_MASK, "search.move-next", "b", 
FALSE);
+  gtk_widget_class_add_binding_action (widget_class, GDK_KEY_g, GDK_CONTROL_MASK|GDK_SHIFT_MASK, 
"search.move-previous", "b", FALSE);
 }
 
 static void


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