fix(ui): improve keyboard access and add headed checks

This commit is contained in:
sam committed 2026-10-19 01:45:20 +11:00
1 parent e202d250ea
commit cfd4afd894
14 files changed
+123 -20

No files matched your search

+2
View File
@@ -114,6 +114,8 @@ function choose(index: number): void {
}
function onKeydown(event: KeyboardEvent): void {
// Safari may end composition before delivering its confirming Enter.
if (event.key === "Enter" && (event.isComposing || event.keyCode === 229)) return;
const plain = !event.shiftKey && !event.ctrlKey && !event.metaKey;
if (isCommandMenuOpen.value && commandMatches.value.length) {
// A command typed in full is sent rather than completed, so Enter never