mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Added Esc shortcut to cancel edit in section of scheduled messages.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user