function isModifierKey(event): boolean;
Defined in: parse.ts:284
Checks if a KeyboardEvent represents a modifier-only key press.
Modifier-only keys are keys like 'Control', 'Shift', 'Alt', 'Meta', etc. that don't have an associated character or action key. This is useful for filtering out modifier key presses when recording shortcuts.
KeyboardEvent
The KeyboardEvent to check
boolean
True if the event represents a modifier-only key
document.addEventListener('keydown', (event) => {
if (isModifierKey(event)) {
console.log('Modifier key pressed, waiting for action key...')
return
}
// Process non-modifier key
})