Focus textinput after closing file send dialog

fixes #867
This commit is contained in:
fiaxh 2020-06-23 15:57:50 +02:00
parent 0b1fb30a83
commit c6173db983
2 changed files with 6 additions and 1 deletions

View file

@ -74,7 +74,7 @@ public class View : Box {
chat_text_view.text_view.buffer.text = entry_cache[conversation]; chat_text_view.text_view.buffer.text = entry_cache[conversation];
} }
chat_text_view.text_view.grab_focus(); do_focus();
} }
public void set_input_state(Plugins.InputFieldStatus.MessageType message_type) { public void set_input_state(Plugins.InputFieldStatus.MessageType message_type) {
@ -105,6 +105,10 @@ public class View : Box {
return false; return false;
}); });
} }
public void do_focus() {
chat_text_view.text_view.grab_focus();
}
} }
} }

View file

@ -31,6 +31,7 @@ public class ConversationView : Gtk.Overlay {
widget.destroy.connect(() => { widget.destroy.connect(() => {
revealer.destroy(); revealer.destroy();
white_revealer.reveal_child = false; white_revealer.reveal_child = false;
chat_input.do_focus();
}); });
} }