diff options
Diffstat (limited to 'src/components')
-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(); } } |