fix(webui): disarm queued prompt for voice shortcut

This commit is contained in:
chengyongru
2026-07-11 01:02:14 +08:00
committed by Xubin Ren
parent 04328f8129
commit 47d498bab0
2 changed files with 47 additions and 0 deletions
@@ -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();
}