summaryrefslogtreecommitdiffstats
path: root/webapp/components/navbar.jsx
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-06-05 20:46:31 +0800
committerHarrison Healey <harrisonmhealey@gmail.com>2017-06-05 08:46:31 -0400
commit0d6dd52be600d5b32ad84c9d26720d36cd96bc3e (patch)
treef4745ac90bffbec068773fb4160a9a467acbe72b /webapp/components/navbar.jsx
parentfd6f6a55ceb38f4ecf105a50464fb1a57226c947 (diff)
downloadchat-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.jsx2
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) {