function hasNonModifierKey(chord, platform?): boolean;Defined in: parse.ts:346
Checks if a chord contains at least one non-modifier key.
This is useful for validating that a recorded chord is complete and not just a combination of modifiers without an action key.
| HotkeyChord | string & object | ParsedHotkeyChord
The chord string or parsed chord to check
Platform = ...
The target platform for parsing (defaults to auto-detection)
boolean
True if the chord contains at least one non-modifier key
hasNonModifierKey('Control+Shift+S') // true
hasNonModifierKey('Control+Shift') // false (no action key)
hasNonModifierKey(parseHotkey('Mod+A')) // true