diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-06-05 20:46:31 +0800 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-05 08:46:31 -0400 |
commit | 0d6dd52be600d5b32ad84c9d26720d36cd96bc3e (patch) | |
tree | f4745ac90bffbec068773fb4160a9a467acbe72b /webapp/components/navbar.jsx | |
parent | fd6f6a55ceb38f4ecf105a50464fb1a57226c947 (diff) | |
download | chat-0d6dd52be600d5b32ad84c9d26720d36cd96bc3e.tar.gz chat-0d6dd52be600d5b32ad84c9d26720d36cd96bc3e.tar.bz2 chat-0d6dd52be600d5b32ad84c9d26720d36cd96bc3e.zip |
[PLT-6697] Added CTRL/CMD+SHIFT+K shortcut to open 'more direct messages' dialog (#6534)
* add keypress shortcut to open 'more direct messages' dialog
* removed duplicate e.preventDefault()
* add text description to /shortcuts output
Diffstat (limited to 'webapp/components/navbar.jsx')
-rw-r--r-- | webapp/components/navbar.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx index 948649b45..6f8df3709 100644 --- a/webapp/components/navbar.jsx +++ b/webapp/components/navbar.jsx @@ -220,7 +220,7 @@ export default class Navbar extends React.Component { } handleQuickSwitchKeyPress(e) { - if (Utils.cmdOrCtrlPressed(e, true) && e.keyCode === Constants.KeyCodes.K) { + if (Utils.cmdOrCtrlPressed(e, true) && !e.shiftKey && e.keyCode === Constants.KeyCodes.K) { e.preventDefault(); if (e.altKey) { if (getMyTeams(store.getState()).length <= 1) { |