Chat: Allow Shift-Enter to insert a newline

This commit is contained in:
Richard Hansen 2021-07-13 19:00:08 -04:00 committed by webzwo0i
parent cf86ae8b63
commit 4ceb3ca4c8

View file

@ -238,7 +238,7 @@ exports.chat = (() => {
$('#chatinput').keypress((evt) => {
// if the user typed enter, fire the send
if (evt.key === 'Enter') {
if (evt.key === 'Enter' && !evt.shiftKey) {
evt.preventDefault();
this.send();
}