diff --git a/src/runtime/composables/defineShortcuts.ts b/src/runtime/composables/defineShortcuts.ts index 2a6b3fbe..f954794e 100644 --- a/src/runtime/composables/defineShortcuts.ts +++ b/src/runtime/composables/defineShortcuts.ts @@ -32,7 +32,7 @@ export const defineShortcuts = (config: ShortcutsConfig) => { let shortcuts: Shortcut[] = [] const onKeyDown = (e: KeyboardEvent) => { - const alphabeticalKey = /^[a-z]{1}$/.test(e.key) + const alphabeticalKey = /^[a-z]{1}$/i.test(e.key) for (const shortcut of shortcuts) { if (e.key.toLowerCase() !== shortcut.key) { continue }