fix(web): bind Send on Enter to the captured session, keep the voice draft (#830)

Held-mode Ctrl, Backspace and restored drafts send to the session their text was typed for; a Ctrl-only field releases it.
Voice compose Send settles the iOS owner without flushing the unsent local-echo draft.
Cover Send on Enter across focus moves, the toolbar Enter in the CJK field and the same-session reload.
Describe Pane B iOS input ownership; drop a stub for a removed helper.
This commit is contained in:
Hadrien Kerlero committed 2026-11-20 21:11:33 +01:00
1 parent eb22f10fd4
commit ddb5a647ba
8 files changed
+254 -85

No files matched your search

+3 -1
View File
@@ -1079,8 +1079,10 @@ const VoiceInput = {
app.showToast?.('That session has closed; dictation not sent', 'warning');
return Promise.resolve();
}
// Settle the destination's iOS owner, but leave an unsent local-echo draft
// in the overlay: flushing it would prepend it to the reviewed dictation.
const pane = app._paneForSession?.(target);
if (pane) app._prepareExternalInput?.(pane, 'voice-send', { flushEcho: true });
if (pane) app._prepareExternalInput?.(pane, 'voice-send');
app._sendInputAsync(target, text, { useMux: true });
return Promise.resolve();
},