Search...
A React Hook that helps to handle keydown event.
keydown
Try to (long) press Enter to increase the counter.
Enter
See API for more details.
Click links below to view source on GitHub.
It's derivated from useKeyStroke, see useKeyStroke for more details.
useKeyStroke
// same as `useKeyStroke(keyFilter, handler, {...options, eventName: 'keydown'})` const stop = useKeyDown(keyFilter, handler, options)