cad-editor/src/modules/annotate
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 39150d617f feat(commandline): always-on keyboard capture + space submits like enter
Two behaviour changes that bring the command line in line with
established CAD workflow:

1. **Always-on keyboard capture.** The input was blurred whenever no
   command was running, so typed letters went nowhere until the user
   clicked into the field. Replace the blur with a re-focus on every
   command lifecycle transition (cmd_result.rs) and on viewport / tab
   / ribbon clicks (update.rs), focus the input at startup, and add
   a global key subscription that catches any unhandled character key
   or backspace and routes it into the buffer via two new messages
   (CommandAppendChar / CommandBackspace) — so the command line keeps
   accumulating keystrokes even if focus parks somewhere not
   focusable. Removes the unused blur_cmd_input helper.

2. **Space submits.** Typing a space at the end of the input now
   submits the buffer the same way Enter does. Only exception: an
   active command that's currently collecting free-form prose
   (TEXT / MTEXT / DDEDIT body, ATTDEF prompt / default value,
   INSERT attribute value, ATTEDIT cell). Those advertise the new
   `CadCommand::wants_text_with_spaces()` flag so the Space character
   reaches the buffer as a literal.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 18:59:51 +03:00
..
aligned_dim.rs cargo fmt 2026-05-12 10:36:15 +03:00
angular_dim.rs cargo fmt 2026-05-12 10:36:15 +03:00
data_extract.rs feat: redesign View tab and fix Annotate/tab order 2026-04-09 12:25:15 +03:00
data_link.rs feat: redesign View tab and fix Annotate/tab order 2026-04-09 12:25:15 +03:00
ddedit.rs feat(commandline): always-on keyboard capture + space submits like enter 2026-05-26 18:59:51 +03:00
diameter_dim.rs cargo fmt 2026-05-12 10:36:15 +03:00
dim_baseline.rs feat(scene): honour the last DimStyle fields end-to-end 2026-05-19 13:37:37 +03:00
dim_continue.rs cargo fmt 2026-05-12 10:36:15 +03:00
dimbreak.rs cargo fmt 2026-05-12 10:36:15 +03:00
dimedit.rs cargo fmt 2026-05-12 10:36:15 +03:00
dimjogline.rs cargo fmt 2026-05-12 10:36:15 +03:00
dimspace.rs cargo fmt 2026-05-12 10:36:15 +03:00
dimtedit.rs cargo fmt 2026-05-12 10:36:15 +03:00
leader_cmd.rs cargo fmt 2026-05-12 10:36:15 +03:00
linear_dim.rs cargo fmt 2026-05-12 10:36:15 +03:00
mleader_cmd.rs cargo fmt 2026-05-12 10:36:15 +03:00
mleader_edit.rs cargo fmt 2026-05-12 10:36:15 +03:00
mod.rs cargo fmt 2026-05-12 10:36:15 +03:00
mtext.rs feat(commandline): always-on keyboard capture + space submits like enter 2026-05-26 18:59:51 +03:00
ordinate_dim.rs cargo fmt 2026-05-12 10:36:15 +03:00
qdim.rs cargo fmt 2026-05-12 10:36:15 +03:00
radius_dim.rs cargo fmt 2026-05-12 10:36:15 +03:00
table_cmd.rs cargo fmt 2026-05-12 10:36:15 +03:00
text.rs feat(commandline): always-on keyboard capture + space submits like enter 2026-05-26 18:59:51 +03:00
tolerance_cmd.rs cargo fmt 2026-05-12 10:36:15 +03:00