0.2.0 • Published 9 years ago

keyboard-shortcuts v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

keyboard-shortcuts

npm David David

Keyboard shortcuts

import Keys, { getKeyCombo } from 'keyboard-shortcuts';

const key = Keys.c; // Symbol(c)
Keys[key]; // 'c'

const event = {
  altKey: false
  charCode: 99
  ctrlKey: false
  keyCode: 99
  keyIdentifier: "U+0043"
  metaKey: false
  shiftKey: false
  timeStamp: 1440844681923
  type: "keypress"
  which: 99
};
getKeyCombo(event); // Symbol(c)
0.2.0

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago