diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-25 14:54:50 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-25 14:54:50 +0100 |
commit | 8846a2a01303c87f04a823fcb4426a3fdb0b6ddf (patch) | |
tree | 528cbedc7183eb526fce63c7040b503479d24643 /resources | |
parent | Fix text input restoring after edits (diff) | |
download | nheko-8846a2a01303c87f04a823fcb4426a3fdb0b6ddf.tar.xz |
Fix potential issue with modifiers and edit shortcuts
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/MessageInput.qml | 4 |
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; |