add missing keyboard navigation, closes #277

This commit is contained in:
vcoppe
2025-11-19 23:00:33 +01:00
parent 89a2e0086b
commit 0d6d161e23
2 changed files with 119 additions and 0 deletions

View File

@@ -644,6 +644,19 @@
} else if (e.key === 'F5') {
$routing = !$routing;
e.preventDefault();
} else if (
e.key === 'ArrowRight' ||
e.key === 'ArrowDown' ||
e.key === 'ArrowLeft' ||
e.key === 'ArrowUp'
) {
if (!targetInput) {
selection.updateFromKey(
e.key === 'ArrowRight' || e.key === 'ArrowDown',
e.shiftKey
);
e.preventDefault();
}
}
}}
on:dragover={(e) => e.preventDefault()}