diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-07-04 03:29:30 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-07-04 03:29:30 -0400 |
commit | 41e2478a6f79d56234c674ebb5ab7f7c2954ee2d (patch) | |
tree | 42d074f392b14acb07ec4d9fbdb0accfee62f476 | |
parent | a9d35dcccdd7ce6b57e0e9526a2eb1f5ca886013 (diff) | |
download | abaddon-portaudio-41e2478a6f79d56234c674ebb5ab7f7c2954ee2d.tar.gz abaddon-portaudio-41e2478a6f79d56234c674ebb5ab7f7c2954ee2d.zip |
grab focus when adding attachment
-rw-r--r-- | src/components/chatinput.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/chatinput.cpp b/src/components/chatinput.cpp index 49c5b5d..b71a234 100644 --- a/src/components/chatinput.cpp +++ b/src/components/chatinput.cpp @@ -382,10 +382,13 @@ void ChatInput::AddAttachment(const Glib::RefPtr<Gio::File> &file) { }; if (image_exts.find(content_type) != image_exts.end()) { - if (AddFileAsImageAttachment(file)) + if (AddFileAsImageAttachment(file)) { m_attachments_revealer.set_reveal_child(true); + m_input.grab_focus(); + } } else if (m_attachments.AddFile(file)) { m_attachments_revealer.set_reveal_child(true); + m_input.grab_focus(); } } |