diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-10-15 02:13:48 +0200 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-10-15 21:25:31 +0200 |
commit | 551b07960ed8ec36c24341f96f2b06fee25ceab3 (patch) | |
tree | 1b05af0c4cb1b111d935aa8fbc6cb3629b7c8742 /web/react/utils | |
parent | c890e21cefe135a74a4a7235b704e7af95decc5c (diff) | |
download | chat-551b07960ed8ec36c24341f96f2b06fee25ceab3.tar.gz chat-551b07960ed8ec36c24341f96f2b06fee25ceab3.tar.bz2 chat-551b07960ed8ec36c24341f96f2b06fee25ceab3.zip |
PLT-74: Enable Up Arrow keyboard shortcut to edit your last message
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/constants.jsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx index cee2ec114..b8200db54 100644 --- a/web/react/utils/constants.jsx +++ b/web/react/utils/constants.jsx @@ -17,6 +17,7 @@ module.exports = { RECIEVED_POSTS: null, RECIEVED_POST: null, + RECIEVED_EDIT_POST: null, RECIEVED_SEARCH: null, RECIEVED_POST_SELECTED: null, RECIEVED_MENTION_DATA: null, @@ -289,5 +290,14 @@ module.exports = { ], Preferences: { CATEGORY_DIRECT_CHANNEL_SHOW: 'direct_channel_show' + }, + KeyCodes: { + UP: 38, + DOWN: 40, + LEFT: 37, + RIGHT: 39, + BACKSPACE: 8, + ENTER: 13, + ESCAPE: 27 } }; |