summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-25 14:54:50 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-25 14:54:50 +0100
commit8846a2a01303c87f04a823fcb4426a3fdb0b6ddf (patch)
tree528cbedc7183eb526fce63c7040b503479d24643
parentFix text input restoring after edits (diff)
downloadnheko-8846a2a01303c87f04a823fcb4426a3fdb0b6ddf.tar.xz
Fix potential issue with modifiers and edit shortcuts
-rw-r--r--resources/qml/MessageInput.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml
index 5a543ac9..48616c1a 100644
--- a/resources/qml/MessageInput.qml
+++ b/resources/qml/MessageInput.qml
@@ -208,7 +208,7 @@ Rectangle {
                     } else if (event.key == Qt.Key_Down && popup.opened) {
                         event.accepted = true;
                         popup.down();
-                    } else if (event.key == Qt.Key_Up) {
+                    } else if (event.key == Qt.Key_Up && event.modifiers == Qt.NoModifier) {
                         if (cursorPosition == 0) {
                             event.accepted = true;
                             var idx = TimelineManager.timeline.edit ? TimelineManager.timeline.idToIndex(TimelineManager.timeline.edit) + 1 : 0;
@@ -225,7 +225,7 @@ Rectangle {
                             event.accepted = true;
                             cursorPosition = 0;
                         }
-                    } else if (event.key == Qt.Key_Down) {
+                    } else if (event.key == Qt.Key_Down && event.modifiers == Qt.NoModifier) {
                         if (cursorPosition == 0) {
                             event.accepted = true;
                             cursorPosition = messageInput.length;