From 96ca098f4bcb9d6cf1a0465a8aeade2db9294e1d Mon Sep 17 00:00:00 2001
From: David Lu <david.lu@hotmail.com>
Date: Wed, 6 Jul 2016 08:50:43 -0400
Subject: PLT-3473 Made shortcuts only work for CMD on OSX (#3479)

* checked for CMD key

* changed method of checking
---
 webapp/components/navbar.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/navbar.jsx')

diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx
index c8fa29e34..bd151dffa 100644
--- a/webapp/components/navbar.jsx
+++ b/webapp/components/navbar.jsx
@@ -163,7 +163,7 @@ export default class Navbar extends React.Component {
         });
     }
     showChannelSwitchModal(e) {
-        if ((e.ctrlKey || e.metaKey) && e.keyCode === Constants.KeyCodes.K) {
+        if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.K) {
             e.preventDefault();
             this.setState({
                 showChannelSwitchModal: true
-- 
cgit v1.2.3-1-g7c22

