From bda39cc6f65e71b913c45f4fd416d09a34030011 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 11 Mar 2018 23:48:18 +0300 Subject: [PATCH] Cancel empty reply by Escape. --- Telegram/SourceFiles/history/history_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index ab5f9dce1..f545234cc 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -6229,6 +6229,8 @@ void HistoryWidget::confirmDeleteSelected() { void HistoryWidget::onListEscapePressed() { if (_nonEmptySelection && _list) { clearSelected(); + } else if (_replyToId && _field->getTextWithTags().text.isEmpty()) { + cancelReply(); } else { onCancel(); }