-
Notifications
You must be signed in to change notification settings - Fork 935
Closed
Labels
Description
Environment
- Operating System: Darwin
- Node Version: v22.16.0
- Nuxt Version: 3.17.3
- CLI Version: 3.25.1
- Nitro Version: 2.11.12
- Package Manager: [email protected]
- Builder: -
- User Config: app, compatibilityDate, css, devtools, devServer, eslint, imports, modules, nitro, runtimeConfig, sourcemap, ssr, typescript, fonts, icon, ui, colorMode
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @vueuse/[email protected], @element-plus/[email protected], @pinia/[email protected]
- Build Modules: -
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.17.3
Reproduction
https://codesandbox.io/p/sandbox/dark-framework-h2yg88
Description
When defining keyboard shortcuts in Nuxt UI's defineShortcuts, the combination Command + - (zoom out) using meta_- does not trigger, while Command + = (zoom in) with meta_= works correctly.
code:
defineShortcuts({
'meta_-': () => { zoomOut() }, // ❌ Not triggered, says: [Shortcut] Invalid key: "meta_-"
'meta_=': () => { zoomIn() } // ✅ Works
})
Additional context
No response