mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 00:57:09 +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() {
|
||||
if (_nonEmptySelection && _list) {
|
||||
clearSelected();
|
||||
} else if (_replyToId && _field->getTextWithTags().text.isEmpty()) {
|
||||
cancelReply();
|
||||
} else {
|
||||
onCancel();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue