From a209f7f6e02ec42059e9ae5425a636065d50cee2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 13 Apr 2026 23:23:49 -0500 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 8 +++++--- src/lib/components/chat/MessageInput.svelte | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 786b7c60b..d08bf6c82 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1861,9 +1861,11 @@ history.currentId = userMessageId; - // focus on chat input - const chatInput = document.getElementById('chat-input'); - chatInput?.focus(); + // focus on chat input (skip during voice call to avoid triggering mobile keyboard) + if (!$showCallOverlay) { + const chatInput = document.getElementById('chat-input'); + chatInput?.focus(); + } saveSessionSelectedModels(); diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index d5361d13a..ef8d2d4cb 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -343,7 +343,9 @@ } chatInputElement?.setText(text); - chatInputElement?.focus(); + if (!$showCallOverlay) { + chatInputElement?.focus(); + } if (text !== '') { text = await inputVariableHandler(text);