mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-04 21:37:45 +00:00
Fix: cancel empty reply by Escape.
This commit is contained in:
parent
bda39cc6f6
commit
c76e4b6b3c
@ -6127,7 +6127,9 @@ void HistoryWidget::onCancel() {
|
|||||||
}
|
}
|
||||||
} else if (!_fieldAutocomplete->isHidden()) {
|
} else if (!_fieldAutocomplete->isHidden()) {
|
||||||
_fieldAutocomplete->hideAnimated();
|
_fieldAutocomplete->hideAnimated();
|
||||||
} else {
|
} else if (_replyToId && _field->getTextWithTags().text.isEmpty()) {
|
||||||
|
cancelReply();
|
||||||
|
} else {
|
||||||
controller()->showBackFromStack();
|
controller()->showBackFromStack();
|
||||||
emit cancelled();
|
emit cancelled();
|
||||||
}
|
}
|
||||||
@ -6229,8 +6231,6 @@ void HistoryWidget::confirmDeleteSelected() {
|
|||||||
void HistoryWidget::onListEscapePressed() {
|
void HistoryWidget::onListEscapePressed() {
|
||||||
if (_nonEmptySelection && _list) {
|
if (_nonEmptySelection && _list) {
|
||||||
clearSelected();
|
clearSelected();
|
||||||
} else if (_replyToId && _field->getTextWithTags().text.isEmpty()) {
|
|
||||||
cancelReply();
|
|
||||||
} else {
|
} else {
|
||||||
onCancel();
|
onCancel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user