Fix cancel edit order on Escape key

This commit is contained in:
Nicolas Werner 2021-02-10 18:00:52 +01:00
parent 6c65136101
commit 2a5e20dc6f

View file

@ -50,10 +50,10 @@ ListView {
Shortcut { Shortcut {
sequence: StandardKey.Cancel sequence: StandardKey.Cancel
onActivated: { onActivated: {
if (chat.model.edit) if (chat.model.reply)
chat.model.edit = undefined;
else
chat.model.reply = undefined; chat.model.reply = undefined;
else
chat.model.edit = undefined;
} }
} }