added shift newlines when typing a message

This commit is contained in:
Brecert 2019-02-19 15:11:12 -06:00
parent 1a027361e6
commit ee67bda81e

View file

@ -140,9 +140,13 @@ export default {
}
},
chatInput(event) {
// when enter is press
if (event.keyCode == 13) {
event.preventDefault();
this.sendMessage();
// and the shift key is not held
if (!event.shiftKey) {
event.preventDefault();
this.sendMessage();
}
}
},
invertScroll(event) {