fix(webui): disarm queued prompt for voice shortcut
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user