Send images on enter if input bar is empty
This commit is contained in:
parent
c792fd28b1
commit
ac5e3fe3e8
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user