2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added Escape hotkey to hide search messages in dialogs.

This commit is contained in:
23rd
2022-03-23 12:02:24 +03:00
committed by John Preston
parent 307894415f
commit 49d090bb4c
2 changed files with 20 additions and 3 deletions

View File

@@ -7135,7 +7135,9 @@ void HistoryWidget::confirmDeleteSelected() {
}
void HistoryWidget::escape() {
if (_chooseForReport) {
if (_composeSearch) {
_composeSearch->hideAnimated();
} else if (_chooseForReport) {
controller()->clearChooseReportMessages();
} else if (_nonEmptySelection && _list) {
clearSelected();