From ac5e3fe3e85163aaf4d54be47b1ea1250e314dd6 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 23 May 2022 12:32:04 +0200 Subject: [PATCH] Send images on enter if input bar is empty --- src/timeline/InputBar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 7ef61da4..4a3605bb 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -296,8 +296,10 @@ InputBar::send() { QInputMethod *im = QGuiApplication::inputMethod(); im->commit(); - if (text().trimmed().isEmpty()) + if (text().trimmed().isEmpty()) { + acceptUploads(); return; + } nhlog::ui()->debug("Send: {}", text().toStdString());