mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
De-focus empty search by backspace.
This commit is contained in:
parent
593e76479c
commit
c1a0172822
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue