react-key-collector

High level overview: You pass in keycodes (for now) and callback to the function exposed. Whenever the all the keys are pressed, callback will be called.

Usage no npm install needed!

<script type="module">
  import reactKeyCollector from 'https://cdn.skypack.dev/react-key-collector';
</script>

README

A library to react to key presses using react hooks :boom: :boom:

High level overview: You pass in keycodes (for now) and callback to the function exposed. Whenever the all the keys are pressed, callback will be called.

Note: It's still not ready to be consumed. Some tasks are pending:

Tasks

  1. adding support for the ordering of keys.
  2. Adding support for getting list of all the shortcuts.
  3. Need to add examples.