[gnome-text-editor] window: add window keybindings for zoom control
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] window: add window keybindings for zoom control
- Date: Wed, 8 Dec 2021 22:32:45 +0000 (UTC)
commit f5eacf1c23930b54465a76d7d5e466728e8a8154
Author: Christian Hergert <chergert redhat com>
Date: Wed Dec 8 14:32:39 2021 -0800
window: add window keybindings for zoom control
This ensures that they will work outside of the source view.
Fixes #246
src/editor-window.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/editor-window.c b/src/editor-window.c
index 806ea45..9634799 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -791,6 +791,13 @@ editor_window_class_init (EditorWindowClass *klass)
gtk_widget_class_add_binding_action (widget_class, GDK_KEY_comma, GDK_CONTROL_MASK,
"win.show-preferences", NULL);
gtk_widget_class_add_binding_action (widget_class, GDK_KEY_question, GDK_CONTROL_MASK,
"win.show-help-overlay", NULL);
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_plus, GDK_CONTROL_MASK, "page.zoom-in", NULL);
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_KP_Add, GDK_CONTROL_MASK, "page.zoom-in", NULL);
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_equal, GDK_CONTROL_MASK, "page.zoom-in", NULL);
+ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_minus, GDK_CONTROL_MASK, "page.zoom-out", NULL);
+ 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_KP_0, GDK_CONTROL_MASK, "page.zoom-one", NULL);
+
_editor_window_class_actions_init (klass);
g_type_ensure (EDITOR_TYPE_OPEN_POPOVER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]