mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-01 00:49:33 +01:00
fix(mobile): Send on Enter second review fixes
- Never send a held answer as text + CR in one write: Codex folds an Enter in the same burst into a paste. A single character is typed, then CR ~120 ms later to the session captured at Enter; anything longer goes through _sendComposedPrompt. Drops HELD_DIRECT_MAX. No session keeps the text in the field. - Cap #cjkInput at 68px on every device, not only touch. - _autoGrow adds the border height and skips a hidden field. - setHoldUntilEnter returns early when the mode is unchanged. - Per-session held drafts: stashed on switch and tile focus, restored on return, dropped when the session is removed. - Toolbar Enter presses Enter in the visible CJK field (commits an active composition first). - Blank-only field sends a bare Enter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95fb147e9c
commit
64ee504247
10 files changed
+418
-92
No files matched your search
@@ -14199,6 +14199,11 @@ html:is([data-skin="paper-gray"], [data-skin="solarized-light"], [data-skin="cat
|
||||
resize: none;
|
||||
line-height: 1.4;
|
||||
box-sizing: border-box;
|
||||
/* Send on Enter grows the field with its text (input-cjk.js _autoGrow), and the
|
||||
setting is not limited to phones: cap it everywhere, not only in the
|
||||
.touch-device rule, or on desktop it pushes the terminal (and its PTY) down. */
|
||||
max-height: 68px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
#cjkInput:focus {
|
||||
|
||||
Reference in new issue
Block a user