CLIP: Enter at the object prompt ends silently

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-13 15:28:36 +03:00
1 parent b1d4c9bd9b
commit d217248ac3
3 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -550,9 +550,10 @@ impl CadCommand for ClipCommand {
self.inner.as_mut().and_then(|c| c.on_text_input(text))
}
fn on_enter(&mut self) -> CmdResult {
// Enter before an object is picked ends CLIP without a message.
self.inner
.as_mut()
.map_or(CmdResult::Cancel, |c| c.on_enter())
.map_or(CmdResult::Measurement(String::new()), |c| c.on_enter())
}
fn on_mouse_move(&mut self, pt: DVec3) -> Option<WireModel> {
self.inner.as_mut().and_then(|c| c.on_mouse_move(pt))