mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Added Esc shortcut to cancel edit in section of scheduled messages.
This commit is contained in:
parent
22f16caa89
commit
3fe9c36d90
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue