mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Added escape handler for uploads (#1100)
* Added escape handler for uploads * Update MessageView.qml Changed if-else conditions to handle only one escape at a time
This commit is contained in:
parent
8cdfbf9391
commit
b0e3c6d65a
1 changed files with 5 additions and 3 deletions
|
@ -192,10 +192,12 @@ Item {
|
|||
Shortcut {
|
||||
sequence: StandardKey.Cancel
|
||||
onActivated: {
|
||||
if (chat.model.reply)
|
||||
chat.model.reply = undefined;
|
||||
if(room.input.uploads.length > 0)
|
||||
room.input.declineUploads();
|
||||
else if(chat.model.reply)
|
||||
chat.model.reply = undefined;
|
||||
else
|
||||
chat.model.edit = undefined;
|
||||
chat.model.edit = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue