Skip to content

Add metaKey support for shortuts #1586

Description

@karolis-zukauskas

Is your feature request related to a problem? Please describe.

Can't register a shortcut via UiFramework.keyboardShortcuts.loadShortcut(shortcut); that runs with metaKey modifier ("Win" key on Windows, "Cmd" key on Mac). For example, I would like to register a shortcut for Mac "Cmd+P".

See KeyboardShortcutProps:

export interface KeyboardShortcutProps extends CommonProps {

metaKey docs: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey

Describe the Solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions