Fix potential issue with modifiers and edit shortcuts

This commit is contained in:
Nicolas Werner 2021-02-25 14:54:50 +01:00
parent 345dc1e61f
commit 8846a2a013
No known key found for this signature in database
GPG Key ID: 13675F31AD04A41C
1 changed files with 2 additions and 2 deletions

View File

@ -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;