1.0.3 • Published 5 years ago

react-usekeydown v1.0.3

Weekly downloads
17
License
-
Repository
-
Last release
5 years ago

hook that returns the value of all pressed keys.

how to use:

  1. npm i react-usekeydown / yarn add react-usekeydown
  2. import useKeyDown from "react-usekeydown";
  3. const keys = useKeyDown();

(or just copy paste src/usekeydown.js)

keys will be equal to an array with all the pressed keys.

or check here for a demo

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago