1.0.3 • Published 6 years ago

react-usekeydown v1.0.3

Weekly downloads
17
License
-
Repository
-
Last release
6 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

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago