From: Matthias Clasen Date: Sun, 21 Aug 2022 20:29:41 +0000 (-0400) Subject: text: Respect no-emoji hint fully X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~3^2~68^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=13f8eeb3ee679d13c98c68f035f41d5e780e71ed;p=gtk4.git 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 --- 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 */