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();
|
QInputMethod *im = QGuiApplication::inputMethod();
|
||||||
im->commit();
|
im->commit();
|
||||||
if (text().trimmed().isEmpty())
|
if (text().trimmed().isEmpty()) {
|
||||||
|
acceptUploads();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
nhlog::ui()->debug("Send: {}", text().toStdString());
|
nhlog::ui()->debug("Send: {}", text().toStdString());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user