From c6173db98305ad8292e3fb17d4261f44cbba4040 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 23 Jun 2020 15:57:50 +0200 Subject: Focus textinput after closing file send dialog fixes #867 --- main/src/ui/chat_input/view.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/src/ui/chat_input') diff --git a/main/src/ui/chat_input/view.vala b/main/src/ui/chat_input/view.vala index b99cd1c4..fe0767cb 100644 --- a/main/src/ui/chat_input/view.vala +++ b/main/src/ui/chat_input/view.vala @@ -74,7 +74,7 @@ public class View : Box { 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) { @@ -105,6 +105,10 @@ public class View : Box { return false; }); } + + public void do_focus() { + chat_text_view.text_view.grab_focus(); + } } } -- cgit v1.2.3-70-g09d2