mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-15 12:31:15 +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) {
|
||||
// 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue