Merge pull request #2 from Brecert/bree-tweak

added shift newlines when typing a message
This commit is contained in:
Supertiger 2019-02-19 21:13:56 +00:00 committed by GitHub
commit 2ac410b0dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {