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,10 +140,14 @@ export default {
} }
}, },
chatInput(event) { chatInput(event) {
// when enter is press
if (event.keyCode == 13) { if (event.keyCode == 13) {
// and the shift key is not held
if (!event.shiftKey) {
event.preventDefault(); event.preventDefault();
this.sendMessage(); this.sendMessage();
} }
}
}, },
invertScroll(event) { invertScroll(event) {
if(event.deltaY) { if(event.deltaY) {