mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
Double-clicking single-line text, an attribute definition or a dimension (no command running) now opens a one-line text box over it on the canvas, as AutoCAD does, instead of asking at the command line (#842). Enter or a click outside keeps the text, Esc cancels, and an emptied box keeps the old text. A dimension's box shows its text override, or <> for the measured value, with the measured value beside it; emptying it or typing <> alone gives the measurement back. The box answers TEXTEDIT's prompt, so the edit is one undo step and scripts, the command line and engine.execute behave as before. The engine describes what to edit through Interactive::text_editor, TextEditor and EditorKind (MText, Line, Dimension), following the design in #2320. Co-authored-by: Luminati <347279204+luminatiguy@users.noreply.github.com>