diff --git a/src/static/js/chat.js b/src/static/js/chat.js index 1d16e75bf..3f91445d2 100755 --- a/src/static/js/chat.js +++ b/src/static/js/chat.js @@ -238,7 +238,7 @@ exports.chat = (() => { $('#chatinput').keypress((evt) => { // if the user typed enter, fire the send - if (evt.which === 13 || evt.which === 10) { + if (evt.key === 'Enter') { evt.preventDefault(); this.send(); }