From c0e4a3a98805d61ca0556cba6e1b94c62d3ab4cc Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 7 Aug 2022 19:18:05 -0400 Subject: give focus to input after choosing file --- src/components/chatinput.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components') diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp index 7ecd4de..fd594d2 100644 --- a/src/components/chatinput.cpp +++ b/src/components/chatinput.cpp @@ -107,6 +107,8 @@ ChatInputTextContainer::ChatInputTextContainer() { m_upload_ev.signal_button_press_event().connect([this](GdkEventButton *ev) -> bool { if (ev->button == GDK_BUTTON_PRIMARY) { ShowFileChooser(); + // return focus + m_input.grab_focus(); return true; } return false; -- cgit v1.2.3