Cancel empty reply by Escape.

This commit is contained in:
John Preston 2018-03-11 23:48:18 +03:00
parent 060cdfea86
commit bda39cc6f6
1 changed files with 2 additions and 0 deletions

View File

@ -6229,6 +6229,8 @@ void HistoryWidget::confirmDeleteSelected() {
void HistoryWidget::onListEscapePressed() {
if (_nonEmptySelection && _list) {
clearSelected();
} else if (_replyToId && _field->getTextWithTags().text.isEmpty()) {
cancelReply();
} else {
onCancel();
}