mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-03 09:09:33 +01:00
fix(mobile): the clear-line key discards a Send on Enter draft
clear({ discard: true }) skips the owner stash, drops any older stash of
the owner and keeps the owner; clearTerminalInput() (the keyboard bar's
clear-line key) uses it, so a cleared draft does not come back on a
same-tab reload or a switch back. @fileoverview gains a Send on Enter
section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
673a656538
commit
387cb830f4
3 files changed
+64
-10
No files matched your search
@@ -5134,7 +5134,9 @@ Object.assign(CodemanApp.prototype, {
|
||||
clearTerminalInput() {
|
||||
if (!this.activeSessionId) return;
|
||||
|
||||
if (typeof CjkInput !== 'undefined') CjkInput.clear();
|
||||
// discard: the line is thrown away, so a Send on Enter draft must not be
|
||||
// stashed and come back on the next visit to this session.
|
||||
if (typeof CjkInput !== 'undefined') CjkInput.clear({ discard: true });
|
||||
// A tile or Pane B holds the keyboard: its TUI owns the editable buffer
|
||||
// (no local-echo overlay there), so kill the line in that pane's session,
|
||||
// never in the parked main pane's.
|
||||
|
||||
Reference in new issue
Block a user