Key Comb Listener
👂 for key comb and 🔥.
With typescript support of course.
Installation
With yarn:
yarn add key-comb-listener
With npm:
npm install key-comb-listener --save
How to use
Use it like this:
; const keyComb = 'ArrowUp' 'ArrowDown';const timeout = 5000;const listener = document;
Configuration
key-comb-listener
accepts 3 parameters.
Param | Type | Default Value |
---|---|---|
key comb | string[] | [] |
timeout | number(ms) | Infinity |
callback | function | () => null |
TODO
-
typescript support