mirror of https://github.com/procxx/kepka.git
Cancel empty reply by Escape.
This commit is contained in:
parent
060cdfea86
commit
bda39cc6f6
|
@ -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…
Reference in New Issue