mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 05:16:16 +00:00
Allow adding arrows as chord actions when shift is pressed (#179)
This commit is contained in:
committed by
GitHub
parent
1d60b12d43
commit
1c8f53caf6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user