A javascript library to handle keybindings as event triggers
yarn add @tchesa/hotkeys
npm install --save @tchesa/hotkeys
import Hotkeys from '@tchesa/hotkeys'
const hotkeys = new Hotkeys()
const action = () => {
console.log('this is my action')
}
hotkeys.on('ctrl+c', action) // register an action
hotkeys.off('ctrl+c', action) // removing added action