Chat: Use `KeyboardEvent.key` instead of deprecated `.which`

pull/5121/head
Richard Hansen 2021-07-13 18:54:41 -04:00 committed by webzwo0i
parent faf84f0143
commit cf86ae8b63
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}