A hotkey manager.
$ npm install hotkeys
var hotkeys = require('hotkeys');
Copy and paste either
build/hotkeys.min.js into your project.
Get or set the default keycode mapping. See "Browser Compatibility", below.
hotkeys supports differences between reported
keyCodes for various browsers. Variants for Firefox, Opera and Chrome/IE/Safari are supplied out of the box and it's trivial to add new mappings - check out
lib/keycodes.js for the gory details.
To set up
hotkeys for specific browser support call
hotkeys.defaultKeycodes() before calling any other library functions. Valid arguments are either
"defaults" (for Chrome/IE/Safari),
"opera". Browser detection is the responsibility of your code, it is not included in the
Released under the ISC license.