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