keyboard-shortcuts
v0.2.0
Published
Keyboard shortcuts
Downloads
11
Readme
keyboard-shortcuts
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)