Commit 77458ad
feat(input): move physical cursor to visual cursor for IME input (#4652)
* feat(input): add useCursor hook for IME physical cursor tracking
* refactor(input): optimize cursor positioning effect
* feat(input): move setCursorPosition to render phase for immediate cursor positioning
* fix(input): calculate absolute cursor position by walking yoga tree
* fix(input): use addLayoutListener instead of useCursor for zero-jitter cursor positioning
* perf(input): stable addLayoutListener subscription and skip redundant cursor updates
* fix(input): revert lastPos dedup that broke cursorDirty one-shot flag
* feat(input): use patch-package to expose Ink internals for IME cursor positioning
* fix(input): address review feedback — prefixWidth, remove useBoxMetrics, pin ink version
Co-authored-by: Shaojin Wen <[email protected]>
---------
Co-authored-by: Shaojin Wen <[email protected]>1 parent 7ee3727 commit 77458ad
7 files changed
Lines changed: 335 additions & 9 deletions
File tree
- packages/cli
- src/ui/components
- agent-view
- patches
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments