Skip to content

🐛 defineShortcuts fails to recognize meta_- (Command + -) #4319

@HADB

Description

@HADB

Environment



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

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions