summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorSateallia <mail@sateallia.org>2023-07-09 19:00:00 +0000
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-11 20:59:46 +0200
commit13a540646f3ed5c7fe7df4396191125daef1e820 (patch)
treef9bfbff9599955f8acca75d1b99b457819fb3224 /src/ui
parentFix chat effect particles sometimes getting 'stuck' on screen (diff)
downloadnheko-13a540646f3ed5c7fe7df4396191125daef1e820.tar.xz
Focus to the message input bar after dragging and dropping a file
Diffstat (limited to '')
-rw-r--r--src/ui/NhekoDropArea.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/NhekoDropArea.cpp b/src/ui/NhekoDropArea.cpp
index 63c9aa6f..348ef5d8 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();
         }
     }
 }