Skip to content
Snippets Groups Projects
Verified Commit ac5e3fe3 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Send images on enter if input bar is empty

parent c792fd28
No related branches found
No related tags found
No related merge requests found
Pipeline #3160 passed
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment