From 59848efc9b9431540a6e2ddf341a2a8bbfcc1715 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 5 Dec 2021 21:59:24 -0500 Subject: [PATCH] chat: Delete non-functional Alt-C shortcut handler --- src/static/js/chat.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/static/js/chat.js b/src/static/js/chat.js index 3d8ec405c..16ba2f946 100755 --- a/src/static/js/chat.js +++ b/src/static/js/chat.js @@ -258,17 +258,6 @@ exports.chat = (() => { Tinycon.setBubble(0); }); - const self = this; - $('body:not(#chatinput)').on('keypress', function (evt) { - if (evt.altKey && evt.which === 67) { - // Alt c focuses on the Chat window - $(this).blur(); - self.show(); - $('#chatinput').focus(); - evt.preventDefault(); - } - }); - $('#chatinput').keypress((evt) => { // if the user typed enter, fire the send if (evt.key === 'Enter' && !evt.shiftKey) {