mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
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:
1 parent
eb22f10fd4
commit
ddb5a647ba
8 files changed
+254
-85
No files matched your search
@@ -206,14 +206,6 @@ function loadPasteHarness(options: PasteHarnessOptions = {}): Harness {
|
||||
};
|
||||
app._flushedOffsets = new Map();
|
||||
app._flushedTexts = new Map();
|
||||
app._flushLocalEchoPending = function (this: Record<string, any>) {
|
||||
const pending = this._localEchoOverlay?.pendingText || '';
|
||||
this._localEchoOverlay.clear();
|
||||
this._localEchoOverlay.suppressBufferDetection();
|
||||
this._flushedOffsets?.delete(this.activeSessionId);
|
||||
this._flushedTexts?.delete(this.activeSessionId);
|
||||
if (pending) this._pendingInput += pending;
|
||||
};
|
||||
}
|
||||
const toasts: string[] = [];
|
||||
app.showToast = (message: string) => toasts.push(message);
|
||||
|
||||
Reference in new issue
Block a user