Chat: Use KeyboardEvent.key instead of deprecated .which

This commit is contained in:
Richard Hansen 2021-07-13 18:54:41 -04:00 committed by webzwo0i
parent faf84f0143
commit cf86ae8b63

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