diff --git a/gtk/gtktext.c b/gtk/gtktext.c index 16968119bc..6af06f39fe 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -6825,7 +6825,7 @@ gtk_text_insert_emoji (GtkText *self) gtk_widget_set_parent (chooser, GTK_WIDGET (self)); g_signal_connect (chooser, "emoji-picked", G_CALLBACK (emoji_picked), self); - g_signal_connect_swapped (chooser, "hide", G_CALLBACK (gtk_widget_grab_focus), self); + g_signal_connect_swapped (chooser, "hide", G_CALLBACK (gtk_text_grab_focus_without_selecting), self); } gtk_popover_popup (GTK_POPOVER (chooser));