fix(webui): disarm queued prompt for voice shortcut

This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-07-11 01:02:14 +08:00
1 parent 04328f8129
commit 47d498bab0
2 files changed
+47

No files matched your search

@@ -1304,6 +1304,7 @@ export function ThreadComposer({
function onKeyDown(event: KeyboardEvent): void {
if (!isVoiceShortcutDown(event) || event.repeat || voiceShortcutDownRef.current) return;
event.preventDefault();
secondEnterPromptIdRef.current = null;
voiceShortcutDownRef.current = true;
voiceRecorder.beginShortcutHold();
}