2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

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 {
// 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