From f66172451d5da713b2c947dcb2e175528abe57e9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 30 Nov 2021 18:37:33 -0500 Subject: [PATCH] textview: Respect editability for Emoji Switch the Emoji chooser keybinding to use the action, so that disabling the action has the desired effect. --- gtk/gtktextview.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index db23e9ad86..f576aaf748 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -1863,13 +1863,13 @@ gtk_text_view_class_init (GtkTextViewClass *klass) NULL); /* Emoji */ - gtk_widget_class_add_binding_signal (widget_class, + gtk_widget_class_add_binding_action (widget_class, GDK_KEY_period, GDK_CONTROL_MASK, - "insert-emoji", + "misc.insert-emoji", NULL); - gtk_widget_class_add_binding_signal (widget_class, + gtk_widget_class_add_binding_action (widget_class, GDK_KEY_semicolon, GDK_CONTROL_MASK, - "insert-emoji", + "misc.insert-emoji", NULL); /* Caret mode */