give focus to input after choosing file

This commit is contained in:
ouwou 2022-08-07 19:18:05 -04:00
parent 344f269414
commit c0e4a3a988

View File

@ -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;