From 8846a2a01303c87f04a823fcb4426a3fdb0b6ddf Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 25 Feb 2021 14:54:50 +0100 Subject: Fix potential issue with modifiers and edit shortcuts --- resources/qml/MessageInput.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources') 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; -- cgit 1.4.1