Fix: cancel empty reply by Escape.
This commit is contained in:
parent
bda39cc6f6
commit
c76e4b6b3c
|
@ -6127,6 +6127,8 @@ void HistoryWidget::onCancel() {
|
|||
}
|
||||
} else if (!_fieldAutocomplete->isHidden()) {
|
||||
_fieldAutocomplete->hideAnimated();
|
||||
} 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…
Reference in New Issue