offkey
v0.1.0
Published
A simple keycode library
Downloads
72
Readme
offkey
simple keycode mapping
var KEY = require('offkey');
KEY.UP; // => 38
KEY.ARROW.UP; // => 38
KeyCodes
- BACKSPACE: 8
- TAB: 9
- ENTER: 13
- SHIFT: 16
- CTRL: 17
- ALT: 18
- PAUSE: 19
- BREAK: 19
- CAPS: 20
- CAPS_LOCK: 20
- CAPSLOCK: 20
- ESCAPE: 27
- PAGE.UP: 33
- PAGE.DOWN: 34
- PAGE_UP: 33
- PAGE_DOWN: 34
- END: 35
- HOME: 36
- ARROW.LEFT: 37
- ARROW.UP: 38
- ARROW.RIGHT: 39
- ARROW.DOWN: 4
- LEFT: 37
- UP: 38
- RIGHT: 39
- DOWN: 40
- _0: 48
- _1: 49
- _2: 50
- _3: 51
- _4: 52
- _5: 53
- _6: 54
- _7: 55
- _8: 56
- _9: 57
- ZERO: 48
- ONE: 49
- TWO: 50
- THREE: 51
- FOUR: 52
- FIVE: 53
- SIX: 54
- SEVEN: 55
- EIGHT: 56
- NINE: 57
- A: 65
- B: 66
- C: 67
- D: 68
- E: 69
- F: 70
- G: 71
- H: 72
- I: 73
- J: 74
- K: 75
- L: 76
- M: 77
- N: 78
- O: 79
- P: 80
- Q: 81
- R: 82
- S: 83
- T: 84
- U: 85
- V: 86
- W: 87
- X: 88
- Y: 89
- Z: 90
- WINDOW.LEFT: 91
- WINDOW.RIGHT: 9
- LEFT_WINDOW: 91
- RIGHT_WINDOW: 92
- SELECT: 93
- NUM._0: 96
- NUM._1: 97
- NUM._2: 98
- NUM._3: 99
- NUM._4: 100
- NUM._5: 101
- NUM._6: 102
- NUM._7: 103
- NUM._8: 104
- NUM._9: 105
- NUM.ZERO: 96
- NUM.ONE: 97
- NUM.TWO: 98
- NUM.THREE: 99
- NUM.FOUR: 100
- NUM.FIVE: 101
- NUM.SIX: 102
- NUM.SEVEN: 103
- NUM.EIGHT: 104
- NUM.NINE: 10
- NUM_0: 96
- NUM_1: 97
- NUM_2: 98
- NUM_3: 99
- NUM_4: 100
- NUM_5: 101
- NUM_6: 102
- NUM_7: 103
- NUM_8: 104
- NUM_9: 105
- NUM_ZERO: 96
- NUM_ONE: 97
- NUM_TWO: 98
- NUM_THREE: 99
- NUM_FOUR: 100
- NUM_FIVE: 101
- NUM_SIX: 102
- NUM_SEVEN: 103
- NUM_EIGHT: 104
- NUM_NINE: 105
- MULTIPLY: 106
- ADD: 107
- SUBTRACT: 109
- DECIMAL: 110
- DIVIDE: 111
- F1: 112
- F2: 113
- F3: 114
- F4: 115
- F5: 116
- F6: 117
- F7: 118
- F8: 119
- F9: 120
- F10: 121
- F11: 122
- F12: 123
- NUM_LOCK: 144
- SCROLL_LOCK: 145
- SEMI_COLON: 186
- SEMICOLON: 186
- EQUAL: 187
- COMMA: 188
- DASH: 189
- PERIOD: 190
- FORWARD_SLASH: 191
- SLASH: 191
- GRAVE_ACCENT: 192
- OPEN_BRACKET: 219
- BACK_SLASH: 220
- BACKSLASH: 220
- CLOSE_BRACKET: 221
- SINGLE_QUOTE: 222
- QUOTE: 222