diff --git a/src/runtime/composables/defineShortcuts.ts b/src/runtime/composables/defineShortcuts.ts index d2b5a7a5..b4be4fc9 100644 --- a/src/runtime/composables/defineShortcuts.ts +++ b/src/runtime/composables/defineShortcuts.ts @@ -33,6 +33,9 @@ export const defineShortcuts = (config: ShortcutsConfig) => { let shortcuts: Shortcut[] = [] const onKeyDown = (e: KeyboardEvent) => { + // Input autocomplete triggers a keydown event + if (!e.key) { return } + const alphabeticalKey = /^[a-z]{1}$/i.test(e.key) for (const shortcut of shortcuts) {