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
1 changed files with 4 additions and 0 deletions

View File

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