mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-20 04:59:34 +01:00
fix(mobile): Send on Enter keeps drafts on every path, Ctrl stays in a held field
- CjkInput remembers which session the field's text belongs to (set by restoreDraft) and clear() stashes a held draft under it, so the paths that drop the active session before the next cleanup (goHome, _replaceTileGrid, _onTileAdoptedElsewhere) keep the answer. discardDraft() drops the owner of a removed session. - Tile focus no longer stashes again for a tile closed from this tab. - With a draft in the field, Ctrl shortcuts (undo, select all, copy) are the field's; they reach the CLI only while it is empty, like Backspace and the arrows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5ad7afebe
commit
673a656538
5 files changed
+115
-8
No files matched your search
@@ -74,10 +74,12 @@ Enter always goes out as its own write, a moment after the text, to the session
|
||||
typed for: a single character is typed, so CLI menus that take a digit still work, and anything
|
||||
longer goes like the prompt composer's Send, as one paste. The one exception is a lone digit while
|
||||
a permission or question dialog is waiting: the digit answers the dialog by itself, so no Enter
|
||||
follows it, which would otherwise confirm whatever the CLI shows next. The toolbar's Enter button sends the
|
||||
field too. With the keyboard bar's one-shot Ctrl armed, the next key you type goes out as a control
|
||||
key (Ctrl, then `c` is Ctrl+C) instead of being held. With the keyboard down the field stays one
|
||||
line tall. A draft stays with its session: switching tabs and coming back brings it back.
|
||||
follows it, which would otherwise confirm whatever the CLI shows next. The toolbar's Enter button
|
||||
sends the field too. With the keyboard bar's one-shot Ctrl armed, the next key you type goes out
|
||||
as a control key (Ctrl, then `c` is Ctrl+C) instead of being held. With a hardware keyboard, Ctrl
|
||||
shortcuts (undo, select all, copy) act on the field while it holds a draft and reach the CLI only
|
||||
when it is empty. With the keyboard down the field stays one line tall. A draft stays with its
|
||||
session: switching tabs and coming back brings it back.
|
||||
|
||||
## Voice dictation
|
||||
|
||||
|
||||
Reference in new issue
Block a user