summaryrefslogtreecommitdiffstats
path: root/webapp/utils/constants.jsx
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-05-23 15:52:02 -0400
committerCorey Hulen <corey@hulen.com>2016-05-23 12:52:02 -0700
commit6438c696b05de2c10ea2639ecc506718342497f6 (patch)
tree8b0d05d307b221f9285870474360471ef2fcad94 /webapp/utils/constants.jsx
parent8fa582dd8362a2444e21c9225364ab072be93e86 (diff)
downloadchat-6438c696b05de2c10ea2639ecc506718342497f6.tar.gz
chat-6438c696b05de2c10ea2639ecc506718342497f6.tar.bz2
chat-6438c696b05de2c10ea2639ecc506718342497f6.zip
Added all keycodes (#3079)
Diffstat (limited to 'webapp/utils/constants.jsx')
-rw-r--r--webapp/utils/constants.jsx97
1 files changed, 90 insertions, 7 deletions
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index 0bbb0c9c2..2f99b81ea 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -544,18 +544,101 @@ export default {
MENU_POPOVER: 3
},
KeyCodes: {
- UP: 38,
- DOWN: 40,
- LEFT: 37,
- RIGHT: 39,
BACKSPACE: 8,
+ TAB: 9,
ENTER: 13,
+ SHIFT: 16,
+ CTRL: 17,
+ ALT: 18,
+ CAPS_LOCK: 20,
ESCAPE: 27,
SPACE: 32,
- TAB: 9,
- U: 85,
+ PAGE_UP: 33,
+ PAGE_DOWN: 34,
+ END: 35,
+ HOME: 36,
+ LEFT: 37,
+ UP: 38,
+ RIGHT: 39,
+ DOWN: 40,
+ INSERT: 45,
+ DELETE: 46,
+ ZERO: 48,
+ ONE: 49,
+ TWO: 50,
+ THREE: 51,
+ FOUR: 52,
+ FIVE: 53,
+ SIX: 54,
+ SEVEN: 55,
+ EIGHT: 56,
+ NINE: 57,
A: 65,
- M: 77
+ 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,
+ CMD: 91,
+ MENU: 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,
+ 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,
+ SEMICOLON: 186,
+ EQUAL: 187,
+ COMMA: 188,
+ DASH: 189,
+ PERIOD: 190,
+ FORWARD_SLASH: 191,
+ TILDE: 192,
+ OPEN_BRACKET: 219,
+ BACK_SLASH: 220,
+ CLOSE_BRACKET: 221
},
CODE_PREVIEW_MAX_FILE_SIZE: 500000, // 500 KB
HighlightedLanguages: {