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.
Parameters
Section titled “Parameters”keys: string[]
Section titled “keys: string[]”The key to listen for.
handler: KeyEventHandler
Section titled “handler: KeyEventHandler”The handler to invoke when the specified key is pressed.
options: ChordInputOptions
Section titled “options: ChordInputOptions”Additional options to customize the chord processing.