From 13f8eeb3ee679d13c98c68f035f41d5e780e71ed Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 21 Aug 2022 16:29:41 -0400 Subject: [PATCH] text: Respect no-emoji hint fully We were disabling the insert-emoji action when the no-emoji input hint is set, but the Ctrl-. shortcut was bypassing the action and kept working. Make the shortcut activate the action instead. Fixes: #5123 --- gtk/gtktext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtktext.c b/gtk/gtktext.c index 70b100fa55..5eb216e14d 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -1487,13 +1487,13 @@ gtk_text_class_init (GtkTextClass *class) 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); /* Undo/Redo */ -- 2.30.2