summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2016-05-12 15:25:43 +0200
committerFlorian Müllner <fmuellner@gnome.org>2016-05-12 20:17:19 +0200
commitf12969fd5276cdcfeeb0a78b827405c975a11bc0 (patch)
tree9ec38780a419a19bec66245752ed91a66e9a4a9d
parent8af3e1ec0c2cd7a2f58c72b32706eafd4484e911 (diff)
downloadclutter-f12969fd5276cdcfeeb0a78b827405c975a11bc0.tar.gz
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
-rw-r--r--clutter/clutter-text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index 164cb03af..54dfae985 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,