summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/channel_actions.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx
index c02568043..a590f9a9b 100644
--- a/webapp/actions/channel_actions.jsx
+++ b/webapp/actions/channel_actions.jsx
@@ -28,6 +28,14 @@ export function executeCommand(channelId, message, suggest, success, error) {
msg = msg.substring(0, msg.indexOf(' ')).toLowerCase() + msg.substring(msg.indexOf(' '), msg.length);
+ if (message.indexOf('/shortcuts') !== -1 && Utils.isMac()) {
+ msg += ' mac';
+ }
+
+ if (!Utils.isMac() && message.indexOf('/shortcuts') !== -1 && message.indexOf('mac') !== -1) {
+ msg = '/shortcuts';
+ }
+
Client.executeCommand(channelId, msg, suggest, success, error);
}