From 1c8f53caf672465c3597da0b1c7f7c8d7fefba92 Mon Sep 17 00:00:00 2001 From: Aleksandr Iushmanov Date: Sun, 6 Apr 2025 16:41:14 +0100 Subject: [PATCH] Allow adding arrows as chord actions when shift is pressed (#179) --- src/routes/(app)/config/chords/ChordPhraseEdit.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/(app)/config/chords/ChordPhraseEdit.svelte b/src/routes/(app)/config/chords/ChordPhraseEdit.svelte index cbbb9351..3851725b 100644 --- a/src/routes/(app)/config/chords/ChordPhraseEdit.svelte +++ b/src/routes/(app)/config/chords/ChordPhraseEdit.svelte @@ -18,11 +18,11 @@ }); function keypress(event: KeyboardEvent) { - if (event.key === "ArrowUp") { + if (!event.shiftKey && event.key === "ArrowUp") { addSpecial(event); - } else if (event.key === "ArrowLeft") { + } else if (!event.shiftKey && event.key === "ArrowLeft") { moveCursor(cursorPosition - 1); - } else if (event.key === "ArrowRight") { + } else if (!event.shiftKey && event.key === "ArrowRight") { moveCursor(cursorPosition + 1); } else if (event.key === "Backspace") { deleteAction(cursorPosition - 1);