Skip to content

useChordDown

Hook | Source Code


useChordDown(keys: string[], handler: KeyEventHandler, options: ChordInputOptions): void


Registers an event listener that will be invoked the moment the specified keys are all pressed.

The key to listen for.


The handler to invoke when the specified key is pressed.


Additional options to customize the chord processing.