diff options
author | Nelson Benítez León <nbenitezl@gmail.com> | 2022-08-30 20:31:17 -0400 |
---|---|---|
committer | Nelson Benítez León <nbenitezl@gmail.com> | 2022-09-01 20:52:15 -0400 |
commit | 64a1305cddb0c303b999bae14cb8c1d993fad2a0 (patch) | |
tree | 145d3151fe5107bbb14924b850fb7ff8a84e9a28 /gtk/gtktext.c | |
parent | a217be14f9d30fb97004deb3f1d93bea1ca2e617 (diff) | |
download | gtk+-gtk4_fix_focus_jump_general.tar.gz |
Move focus to parent when hiding a focused childgtk4_fix_focus_jump_general
because otherwise the focus will jump forward
to next widget, while expected behaviour is
for focus to come back to parent widget when
such parent is focusable.
As we now do this toolkit wide in
_gtk_window_unset_focus_and_default(),
there's no need for individual widgets to do
that explicitly, so we remove such explicit
calls by the GtkText and GtkTextView widgets.
Fixes issue #4903
Diffstat (limited to 'gtk/gtktext.c')
-rw-r--r-- | gtk/gtktext.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtktext.c b/gtk/gtktext.c index b95d6d8c51..5658a08cb8 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -6919,7 +6919,6 @@ 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_text_grab_focus_without_selecting), self); } gtk_popover_popup (GTK_POPOVER (chooser)); |