mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 17:11:43 +00:00
added shift newlines when typing a message
This commit is contained in:
parent
1a027361e6
commit
ee67bda81e
1 changed files with 6 additions and 2 deletions
|
|
@ -140,9 +140,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chatInput(event) {
|
chatInput(event) {
|
||||||
|
// when enter is press
|
||||||
if (event.keyCode == 13) {
|
if (event.keyCode == 13) {
|
||||||
event.preventDefault();
|
// and the shift key is not held
|
||||||
this.sendMessage();
|
if (!event.shiftKey) {
|
||||||
|
event.preventDefault();
|
||||||
|
this.sendMessage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
invertScroll(event) {
|
invertScroll(event) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue