Utilities

Hotkey

Platform-aware visual hint for a keyboard shortcut.

Hotkey

Playground

Configure the baseline public contract and copy synchronized Vue markup.

Interactive preview

Changes are reflected in the example and source.

Properties

Platform

Disabled

Vue

<m-hotkey
  :keys='[&quot;Control&quot;,&quot;K&quot;]'
  platform="auto"
  :disabled="false"
 />

MHotkey API

Props, slots, and events are extracted from the current public UI Kit contract.

MHotkey

Utility family
src/runtime/components/ui/hotkey

Props

NameTypeDefault
hotkeyPresentation model returned by `useHotkey` (recommended, behavior-linked).
HotkeyPresentationundefined
keysStatic key list for a standalone hint (mutually exclusive with `hotkey`).
HotkeyKey[]undefined
platformPlatform for static `keys` mode.
'auto' | 'mac' | 'windows' | 'linux''auto'
disabledExplicitly disable a static `keys` hint (behavioral mode uses `hotkey.isActive`).
booleanfalse
separatorOverride the platform-aware separator glyph.
stringundefined
ariaLabelOverride the generated accessible label.
stringundefined

Slots

Events

MHotkey does not emit component-specific events. Native events fall through to its root element.