[clutter] text: Bind <ctrl>A in addition to <ctrl>a



commit f12969fd5276cdcfeeb0a78b827405c975a11bc0
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu May 12 15:25:43 2016 +0200

    text: Bind <ctrl>A in addition to <ctrl>a
    
    The 'select-all' action is currently only bound to <ctrl>a, which makes
    it awkward to use when caps-lock is active, and is inconsistent with GTK+.
    Just accept both upper- and lower-case variants.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766326

 clutter/clutter-text.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index 164cb03..54dfae9 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -4044,6 +4044,10 @@ clutter_text_class_init (ClutterTextClass *klass)
                                        CLUTTER_KEY_a, CLUTTER_CONTROL_MASK,
                                        G_CALLBACK (clutter_text_real_select_all),
                                        NULL, NULL);
+  clutter_binding_pool_install_action (binding_pool, "select-all",
+                                       CLUTTER_KEY_A, CLUTTER_CONTROL_MASK,
+                                       G_CALLBACK (clutter_text_real_select_all),
+                                       NULL, NULL);
 
   clutter_binding_pool_install_action (binding_pool, "delete-next",
                                        CLUTTER_KEY_Delete, 0,


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