simbathesailor / react-key-collector

A small library allows to handle multiple key stroke events in react :key:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A library to react to key presses using react hooks 💥 💥

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.

About

A small library allows to handle multiple key stroke events in react :key:

License:MIT License


Languages

Language:JavaScript 69.7%Language:TypeScript 26.8%Language:HTML 2.2%Language:CSS 1.4%