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
This commit is contained in:
Matthias Clasen 2022-08-21 16:29:41 -04:00
parent 8d4968afb2
commit 317d4c8f8d

View File

@ -1523,13 +1523,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 */