mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Send images on enter if input bar is empty
This commit is contained in:
parent
c792fd28b1
commit
ac5e3fe3e8
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue