Skip to content

Commit

Permalink
fix(defineShortcuts): shift + alphabetic character handling (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarroufin committed Mar 13, 2023
1 parent f76a9f0 commit 377b418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/defineShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

1 comment on commit 377b418

@vercel
Copy link

@vercel vercel bot commented on 377b418 Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
nuxthq-ui.vercel.app
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.