mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +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)
|
||||
&& _searchHasFocus
|
||||
&& !_searchState.inChat) {
|
||||
&& !_searchState.inChat
|
||||
&& _searchState.query.isEmpty()) {
|
||||
escape();
|
||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||
submit();
|
||||
|
|
Loading…
Add table
Reference in a new issue