De-focus empty search by backspace.

This commit is contained in:
John Preston 2024-05-06 17:07:02 +04:00
parent 593e76479c
commit c1a0172822

View file

@ -3244,6 +3244,10 @@ void Widget::keyPressEvent(QKeyEvent *e) {
//} else { //} else {
// e->ignore(); // e->ignore();
//} //}
} else if (e->key() == Qt::Key_Backspace
&& _searchHasFocus
&& !_searchInChat) {
escape();
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) { } else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
submit(); submit();
} else if (_suggestions } else if (_suggestions