function validateHotkey(hotkey): ValidationResult;Defined in: validate.ts:32
Validates a hotkey and returns any warnings or errors. Sequences are validated step by step, and messages name the failing step.
Checks for:
The hotkey string to validate
A ValidationResult with validity status, warnings, and errors
validateHotkey('Mod+S')
// { valid: true, warnings: [], errors: [] }
validateHotkey('')
// { valid: false, warnings: [], errors: ['Hotkey cannot be empty'] }
validateHotkey(['G', 'Foo+H'])
// { valid: false, warnings: [], errors: ["Step 2: Unknown modifier: 'Foo'"] }