react-usekeydown

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i react-usekeydown

Weekly Downloads

2

Version

1.0.3

License

none

Unpacked Size

4.74 kB

Total Files

6

Last publish

Collaborators

  • jescowuester