From 13a540646f3ed5c7fe7df4396191125daef1e820 Mon Sep 17 00:00:00 2001
From: Sateallia <mail@sateallia.org>
Date: Sun, 9 Jul 2023 19:00:00 +0000
Subject: [PATCH] Focus to the message input bar after dragging and dropping a
 file

---
 src/ui/NhekoDropArea.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ui/NhekoDropArea.cpp b/src/ui/NhekoDropArea.cpp
index 63c9aa6f7..348ef5d8a 100644
--- a/src/ui/NhekoDropArea.cpp
+++ b/src/ui/NhekoDropArea.cpp
@@ -38,6 +38,7 @@ NhekoDropArea::dropEvent(QDropEvent *event)
         auto model = ChatPage::instance()->timelineManager()->rooms()->getRoomById(roomid_);
         if (model) {
             model->input()->insertMimeData(event->mimeData());
+            ChatPage::instance()->timelineManager()->focusMessageInput();
         }
     }
 }
-- 
GitLab