textview: Respect editability for Emoji

Switch the Emoji chooser keybinding to use the
action, so that disabling the action has the
desired effect.
This commit is contained in:
Matthias Clasen 2021-11-30 18:37:33 -05:00
parent e80238120e
commit f66172451d

View File

@ -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 */