123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- /*
- KeyCode by Justin Gilman
- Add this file at the top of any project that interacts
- with keyCode for a convenient way to reference the ASCII values.
- MIT License
- */
- export const KeyCode = {
- Backspace: 8,
- Tab: 9,
- Enter: 13,
- Shift: 16,
- Ctrl: 17,
- Alt: 18,
- Pause: 19,
- CapsLock: 20,
- Esc: 27,
- Space: 32,
- PageUp: 33,
- PageDown: 34,
- End: 35,
- Home: 36,
- Left: 37,
- Up: 38,
- Right: 39,
- Down: 40,
- Insert: 45,
- Del: 46,
- NUM_0: 48,
- NUM_1: 49,
- NUM_2: 50,
- NUM_3: 51,
- NUM_4: 52,
- NUM_5: 53,
- NUM_6: 54,
- NUM_7: 55,
- NUM_8: 56,
- NUM_9: 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,
- LeftMeta: 91,
- RightMeta: 92,
- Select: 93,
- 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,
- Asterisk: 106,
- Plus: 107,
- Minus: 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,
- NumLock: 144,
- ScrollLock: 145,
- Semicolon: 186,
- Equal: 187,
- Comma: 188,
- Dash: 189,
- Period: 190,
- Slash: 191,
- Backtick: 192,
- LeftBracket: 219,
- Backslash: 220,
- RightBracket: 221,
- Apostrophe: 222,
- };
|