mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Cancel empty reply by Escape.
This commit is contained in:
parent
060cdfea86
commit
bda39cc6f6
1 changed files with 2 additions and 0 deletions
|
@ -6229,6 +6229,8 @@ 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…
Add table
Reference in a new issue