From 96e5ecdbe567db036f02daca7a88ca5f6e84076c Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Thu, 26 Mar 2026 23:23:38 +0530 Subject: [PATCH] enter to submit voice input --- .../src/components/chat-input-with-mentions.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx b/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx index 18010836..391c9d14 100644 --- a/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx +++ b/apps/x/apps/renderer/src/components/chat-input-with-mentions.tsx @@ -488,7 +488,17 @@ function ChatInputInner({ /> {isRecording ? ( /* ── Recording bar ── */ -
+
el?.focus()} + onKeyDown={(e) => { + if (e.key === 'Enter' && !e.shiftKey && recordingText?.trim()) { + e.preventDefault() + onSubmitRecording?.() + } + }} + >