mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-27 03:47:09 -06:00
Windows Magnifier keeps the text cursor in view through UI Automation: the caret's own box has no width, so it takes the box of the character after the caret, and when that has none either, of the two characters before it. The canvas described a line's end mark (the paragraph mark, a line break) with no width, so on the empty line Enter or Shift+Enter makes Magnifier looked at the end of the line above and stayed there until two more letters were typed. A line's end mark now takes the room a selection shows a paragraph mark with: PARA_MARK_WIDTH (5 pt, now shared with selection_rects) at the line's visual end (Line::mark_box). Checked live with Windows Magnifier, its view read with MagGetFullscreenTransform: after Enter and Shift+Enter it moves to the new line at once. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>