From bc199fed44976e89023ec9d7ca860399c31d3bf3 Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Thu, 17 Sep 2026 23:37:10 -0400 Subject: [PATCH] feature: shift+enter makes a new line in chat Enter still sends and ctrl/cmd+enter still sends to the other room. The box grows to five lines and messages render their line breaks. --- components/chat/ChatInput.vue | 47 ++++++++++++++++++++------- components/chat/ChatMessage.vue | 2 +- tests/utilities/chatInputKeys.spec.ts | 39 ++++++++++++++++++++++ utilities/chatInputKeys.ts | 24 ++++++++++++++ 4 files changed, 99 insertions(+), 13 deletions(-) create mode 100644 tests/utilities/chatInputKeys.spec.ts create mode 100644 utilities/chatInputKeys.ts diff --git a/components/chat/ChatInput.vue b/components/chat/ChatInput.vue index 44023d42a..984906fb4 100644 --- a/components/chat/ChatInput.vue +++ b/components/chat/ChatInput.vue @@ -108,22 +108,23 @@ const fieldName = `chat-message-${Math.random().toString(36).slice(2, 10)}`; : 'flex items-center gap-2 p-2' " > -