summary refs log tree commit diff
path: root/resources/qml/MessageView.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-10 18:00:52 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-10 18:00:52 +0100
commit2a5e20dc6ff331b42d5dce99ee45ce19c5b60b56 (patch)
tree0889b18eb234f039332c667cd129b275adae050f /resources/qml/MessageView.qml
parentUpdate translations (diff)
downloadnheko-2a5e20dc6ff331b42d5dce99ee45ce19c5b60b56.tar.xz
Fix cancel edit order on Escape key
Diffstat (limited to 'resources/qml/MessageView.qml')
-rw-r--r--resources/qml/MessageView.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index 09dc4e36..13b4c82c 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -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;
         }
     }