From ee67bda81ee4116ec3b7b9af6ef2fadf364ff661 Mon Sep 17 00:00:00 2001 From: Brecert <11599528+Brecert@users.noreply.github.com> Date: Tue, 19 Feb 2019 15:11:12 -0600 Subject: [PATCH] added shift newlines when typing a message --- src/components/app/RightPanel.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/app/RightPanel.vue b/src/components/app/RightPanel.vue index bffecf1..aadec6d 100644 --- a/src/components/app/RightPanel.vue +++ b/src/components/app/RightPanel.vue @@ -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) {