diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-05-23 12:32:04 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-05-23 12:32:04 +0200 |
commit | ac5e3fe3e85163aaf4d54be47b1ea1250e314dd6 (patch) | |
tree | 27ebbd27e71d0fad1442cda203c2fe4a36e8c963 /src/timeline/InputBar.cpp | |
parent | Fix unsigned wraparound when creating one time keys (diff) | |
download | nheko-ac5e3fe3e85163aaf4d54be47b1ea1250e314dd6.tar.xz |
Send images on enter if input bar is empty
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r-- | src/timeline/InputBar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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()); |