KEYBOARD_MODIFIERS
const
Interactivity
Ordered list of the five recognised modifier keys (ctrl, shift, alt, meta, cmd) used by the hotkey system when parsing and matching keyboard shortcuts.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- KEYBOARD_MODIFIERS_KEY.CONTROL
- Ctrl modifier.
- KEYBOARD_MODIFIERS_KEY.SHIFT
- Shift modifier.
- KEYBOARD_MODIFIERS_KEY.ALT
- Alt / Option modifier.
- KEYBOARD_MODIFIERS_KEY.META
- Meta (Windows / Super) modifier.
- KEYBOARD_MODIFIERS_KEY.COMMAND
- Command (macOS Cmd ⌘) modifier.
Ecosystem
Used by
Composables and components that consume this constant.
useHotkey
Usage
Examples
Ready-to-paste code snippets using this constant.
Extracting active modifiers from a KeyboardEvent