Type Alias: HotkeyString
HotkeyString = `${"Mod" | "Ctrl" | "Meta" | "Alt" | "Shift" | "None"}+${Capitalize<string>}`
Defined in: coreUtils/hotkey.ts:20
Represents a keyboard press sequence expression for a hotkey.
The valid hotkey expression is at least one or more modifiers and the key separated by +,
e.g. Ctrl+Alt+K, Alt+Meta+Q, Ctrl+/:
- modifier is one of
Mod,Ctrl,Meta,Alt,Shift(ModisMetaon Mac andCtrleverywhere else). - key is a KeyboardEvent.key
with a special case for
A-Zkeys to handle them independently of an active keyboard layout. - single-letter keys are matched case-insensitively, so
Ctrl+Shift+ais the same asCtrl+Shift+A. Shift-specific special keys needs to be specified as-is i.e.Shift+5will not be triggered and should be specified asShift+%(and only for keyboard layouts with that mapping).