2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added Esc shortcut to cancel edit in section of scheduled messages.

This commit is contained in:
23rd
2020-06-08 13:21:44 +03:00
parent 22f16caa89
commit 3fe9c36d90

View File

@@ -168,7 +168,7 @@ void ScheduledWidget::setupComposeControls() {
_composeControls->cancelRequests(
) | rpl::start_with_next([=] {
controller()->showBackFromStack();
listCancelRequest();
}, lifetime());
_composeControls->sendRequests(
@@ -1037,6 +1037,10 @@ void ScheduledWidget::listCancelRequest() {
clearSelected();
return;
}
if (_composeControls->isEditingMessage()) {
_composeControls->cancelEditMessage();
return;
}
controller()->showBackFromStack();
}