Skip to content

Commit 1c8f53c

Browse files
authored
Allow adding arrows as chord actions when shift is pressed (#179)
1 parent 1d60b12 commit 1c8f53c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/(app)/config/chords/ChordPhraseEdit.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
});
1919
2020
function keypress(event: KeyboardEvent) {
21-
if (event.key === "ArrowUp") {
21+
if (!event.shiftKey && event.key === "ArrowUp") {
2222
addSpecial(event);
23-
} else if (event.key === "ArrowLeft") {
23+
} else if (!event.shiftKey && event.key === "ArrowLeft") {
2424
moveCursor(cursorPosition - 1);
25-
} else if (event.key === "ArrowRight") {
25+
} else if (!event.shiftKey && event.key === "ArrowRight") {
2626
moveCursor(cursorPosition + 1);
2727
} else if (event.key === "Backspace") {
2828
deleteAction(cursorPosition - 1);

0 commit comments

Comments
 (0)