From 5a9bee42d5f600f4349342ce38d6878d8b1619cc Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 11 Oct 2013 21:20:18 -0700 Subject: [PATCH] Fix typing notification when pressing ctrl or alt --- clientapp/pages/chat.js | 2 +- clientapp/pages/groupchat.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapp/pages/chat.js b/clientapp/pages/chat.js index 160e2d4..d70833f 100644 --- a/clientapp/pages/chat.js +++ b/clientapp/pages/chat.js @@ -109,7 +109,7 @@ module.exports = BasePage.extend(chatHelpers).extend({ this.$chatInput.removeClass('editing'); e.preventDefault(); return false; - } else if (!e.ctrlKey) { + } else if (!e.ctrlKey && !e.metaKey) { if (!this.typing) { this.typing = true; client.sendMessage({ diff --git a/clientapp/pages/groupchat.js b/clientapp/pages/groupchat.js index 03c486e..5b9c5a5 100644 --- a/clientapp/pages/groupchat.js +++ b/clientapp/pages/groupchat.js @@ -67,7 +67,7 @@ module.exports = BasePage.extend({ this.$chatInput.removeClass('editing'); e.preventDefault(); return false; - } else if (!e.ctrlKey) { + } else if (!e.ctrlKey && !e.metaKey) { if (!this.typing) { this.typing = true; client.sendMessage({