If true, a sequence must be followed by the return/enter key before activating
Sequence of key strokes required to activate the callback
Calls a function when a sequence of key presses is detected.
export default function () { const [ state, setState ] = useState('foo') const options = { sequence: [ 'x', 'y', 'a', 'b' ], requireReturn: true } useKonamiCode(() => setState('bar'), options) return (<div>{state}</div>)})
Function to be called when a sequence is detected
Generated using TypeDoc
If true, a sequence must be followed by the return/enter key before activating