@f/keycodes

1.1.2 • Public • Published

keycodes

Build status Git tag NPM version Code style

Map of keycodes to human readable key names

Installation

$ npm install @f/keycodes

Usage

Keycodes exports this:

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: "'"
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @f/keycodes

Weekly Downloads

2

Version

1.1.2

License

MIT

Last publish

Collaborators

  • f