1 parent 63143d2 commit d773d27Copy full SHA for d773d27
1 file changed
templates/js/voice.js
@@ -72,7 +72,15 @@ function stopMic() {
72
}
73
74
function insertVoiceText(text) {
75
- // If code editor is focused, redirect voice to chat panel instead
+ // In interview mode, always route to chat
76
+ if (isActiveTabInterview && isActiveTabInterview()) {
77
+ showChatPanel();
78
+ const adHoc = document.getElementById('adHocChatInput');
79
+ adHoc.value += (adHoc.value ? ' ' : '') + text;
80
+ adHoc.focus();
81
+ return;
82
+ }
83
+ // If code editor is focused, redirect voice to chat panel
84
if (lastFocusedEditorKey && editors[lastFocusedEditorKey]) {
85
const ed = editors[lastFocusedEditorKey];
86
if (ed.hasTextFocus()) {
0 commit comments