Map of keycodes to human readable key names
npm install @f/keycodes[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]
Map of keycodes to human readable key names
$ npm install @f/keycodes
Keycodes exports this:
``javascript',
var keycodes = {
8: 'backspace',
9: 'tab',
13: 'enter',
16: 'shift',
17: 'ctrl',
18: 'alt',
19: 'pause',
20: 'caps_lock',
27: 'esc',
32: 'space',
33: 'page_up',
34: 'page_down',
35: 'end',
36: 'home',
37: 'left',
38: 'up',
39: 'right',
40: 'down',
45: 'insert',
46: 'delete',
91: 'command',
93: 'right_click',
106: 'numpad_*',
107: 'numpad_+',
109: 'numpad_-',
110: 'numpad_.',
111: 'numpad_/',
144: 'num_lock',
145: 'scroll_lock',
182: 'my_computer',
183: 'my_calculator',
186: ';',
187: '=',
188: ',',
189: '-',
190: '.',
191: '/',
192: '
219: '[',
220: '\\',
221: ']',
222: "'"
}
```
MIT
[travis-image]: https://img.shields.io/travis/micro-js/keycodes.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/keycodes
[git-image]: https://img.shields.io/github/tag/micro-js/keycodes.svg
[git-url]: https://github.com/micro-js/keycodes
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/keycodes.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/keycodes