Focus to the message input bar after dragging and dropping a file

This commit is contained in:
Sateallia 2023-07-09 19:00:00 +00:00 committed by Nicolas Werner
parent 24389f36f8
commit 13a540646f
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -38,6 +38,7 @@ NhekoDropArea::dropEvent(QDropEvent *event)
auto model = ChatPage::instance()->timelineManager()->rooms()->getRoomById(roomid_); auto model = ChatPage::instance()->timelineManager()->rooms()->getRoomById(roomid_);
if (model) { if (model) {
model->input()->insertMimeData(event->mimeData()); model->input()->insertMimeData(event->mimeData());
ChatPage::instance()->timelineManager()->focusMessageInput();
} }
} }
} }