Skip to content

Instantly share code, notes, and snippets.

@mimshwright
Created January 10, 2017 21:21
Show Gist options
  • Save mimshwright/7b23464d7f63065400af319d04e7df6d to your computer and use it in GitHub Desktop.
Save mimshwright/7b23464d7f63065400af319d04e7df6d to your computer and use it in GitHub Desktop.
All keycode strings defined by https://www.npmjs.com/package/keycode
"0" : 48
"1" : 49
"2" : 50
"3" : 51
"4" : 52
"5" : 53
"6" : 54
"7" : 55
"8" : 56
"9" : 57
"'" : 222
"," : 188
"-" : 189
"." : 190
"/" : 191
";" : 186
"=" : 187
"[" : 219
"\" : 220
"]" : 221
"`" : 192
"a" : 65
"alt" : 18
"b" : 66
"backspace" : 8
"break" : 19
"c" : 67
"caps" : 20
"caps lock" : 20
"cmd" : 91
"command" : 91
"control" : 17
"ctl" : 17
"ctrl" : 17
"d" : 68
"del" : 46
"delete" : 46
"down" : 40
"e" : 69
"end" : 35
"enter" : 13
"esc" : 27
"escape" : 27
"f" : 70
"f1" : 112
"f10" : 121
"f11" : 122
"f12" : 123
"f2" : 113
"f3" : 114
"f4" : 115
"f5" : 116
"f6" : 117
"f7" : 118
"f8" : 119
"f9" : 120
"g" : 71
"h" : 72
"home" : 36
"i" : 73
"ins" : 45
"insert" : 45
"j" : 74
"k" : 75
"l" : 76
"left" : 37
"left command" : 91
"m" : 77
"my calculator" : 183
"my computer" : 182
"n" : 78
"num lock" : 144
"numpad *" : 106
"numpad +" : 107
"numpad -" : 109
"numpad ." : 110
"numpad /" : 111
"numpad 0" : 96
"numpad 1" : 97
"numpad 2" : 98
"numpad 3" : 99
"numpad 4" : 100
"numpad 5" : 101
"numpad 6" : 102
"numpad 7" : 103
"numpad 8" : 104
"numpad 9" : 105
"o" : 79
"option" : 18
"p" : 80
"page down" : 34
"page up" : 33
"pause" : 19
"pause/break" : 19
"pgdn" : 34
"pgup" : 33
"q" : 81
"r" : 82
"return" : 13
"right" : 39
"right command" : 93
"s" : 83
"scroll lock" : 145
"shift" : 16
"space" : 32
"spc" : 32
"t" : 84
"tab" : 9
"u" : 85
"up" : 38
"v" : 86
"w" : 87
"windows" : 91
"x" : 88
"y" : 89
"z" : 90
"⇧" : 16
"⌃" : 17
"⌘" : 91
"⌥" : 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment