refac
This commit is contained in:
@@ -1861,9 +1861,11 @@
|
|||||||
|
|
||||||
history.currentId = userMessageId;
|
history.currentId = userMessageId;
|
||||||
|
|
||||||
// focus on chat input
|
// focus on chat input (skip during voice call to avoid triggering mobile keyboard)
|
||||||
const chatInput = document.getElementById('chat-input');
|
if (!$showCallOverlay) {
|
||||||
chatInput?.focus();
|
const chatInput = document.getElementById('chat-input');
|
||||||
|
chatInput?.focus();
|
||||||
|
}
|
||||||
|
|
||||||
saveSessionSelectedModels();
|
saveSessionSelectedModels();
|
||||||
|
|
||||||
|
|||||||
@@ -343,7 +343,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
chatInputElement?.setText(text);
|
chatInputElement?.setText(text);
|
||||||
chatInputElement?.focus();
|
if (!$showCallOverlay) {
|
||||||
|
chatInputElement?.focus();
|
||||||
|
}
|
||||||
|
|
||||||
if (text !== '') {
|
if (text !== '') {
|
||||||
text = await inputVariableHandler(text);
|
text = await inputVariableHandler(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user