mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix cancel edit order on Escape key
This commit is contained in:
parent
6c65136101
commit
2a5e20dc6f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue