Fix cancel edit order on Escape key
This commit is contained in:
parent
6c65136101
commit
2a5e20dc6f
@ -50,10 +50,10 @@ ListView {
|
||||
Shortcut {
|
||||
sequence: StandardKey.Cancel
|
||||
onActivated: {
|
||||
if (chat.model.edit)
|
||||
chat.model.edit = undefined;
|
||||
else
|
||||
if (chat.model.reply)
|
||||
chat.model.reply = undefined;
|
||||
else
|
||||
chat.model.edit = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user