fix(ui): improve keyboard access and add headed checks
This commit is contained in:
1 parent
e202d250ea
commit
cfd4afd894
14 files changed
+123
-20
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user