function assertValidHotkey(hotkey): void;Defined in: validate.ts:163
Validates a hotkey and throws an error if invalid. Useful for development-time validation.
The hotkey string to validate
void
Error if the hotkey is invalid
assertValidHotkey('Mod+S') // OK
assertValidHotkey('') // Throws Error: Invalid hotkey: Hotkey cannot be empty