forked from OpenGamers/abaddon
give focus to input after choosing file
This commit is contained in:
parent
344f269414
commit
c0e4a3a988
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user