Fix "edit by Up" option in comments and scheduled messages

This commit is contained in:
Eric Kotato 2021-08-27 01:09:16 +03:00
parent 38d6f337cc
commit 59a7ae5b11

View file

@ -1100,7 +1100,7 @@ void ComposeControls::initKeyHandler() {
_attachRequests.fire({});
return;
}
if (key == Qt::Key_Up && !hasModifiers) {
if (key == Qt::Key_Up && !hasModifiers && !cDisableUpEdit()) {
if (!isEditingMessage()) {
_editLastMessageRequests.fire(std::move(keyEvent));
return;