mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix: cancel empty reply by Escape.
This commit is contained in:
parent
bda39cc6f6
commit
c76e4b6b3c
1 changed files with 3 additions and 3 deletions
|
@ -6127,7 +6127,9 @@ void HistoryWidget::onCancel() {
|
|||
}
|
||||
} else if (!_fieldAutocomplete->isHidden()) {
|
||||
_fieldAutocomplete->hideAnimated();
|
||||
} else {
|
||||
} else if (_replyToId && _field->getTextWithTags().text.isEmpty()) {
|
||||
cancelReply();
|
||||
} else {
|
||||
controller()->showBackFromStack();
|
||||
emit cancelled();
|
||||
}
|
||||
|
@ -6229,8 +6231,6 @@ void HistoryWidget::confirmDeleteSelected() {
|
|||
void HistoryWidget::onListEscapePressed() {
|
||||
if (_nonEmptySelection && _list) {
|
||||
clearSelected();
|
||||
} else if (_replyToId && _field->getTextWithTags().text.isEmpty()) {
|
||||
cancelReply();
|
||||
} else {
|
||||
onCancel();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue