mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't drop search on non-empty backspace.
This commit is contained in:
parent
88e742927f
commit
9043c18725
1 changed files with 2 additions and 1 deletions
|
@ -3425,7 +3425,8 @@ void Widget::keyPressEvent(QKeyEvent *e) {
|
||||||
//}
|
//}
|
||||||
} else if ((e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Tab)
|
} else if ((e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Tab)
|
||||||
&& _searchHasFocus
|
&& _searchHasFocus
|
||||||
&& !_searchState.inChat) {
|
&& !_searchState.inChat
|
||||||
|
&& _searchState.query.isEmpty()) {
|
||||||
escape();
|
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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue