forked from 1b-agent/opencadstudio-upstream
fix(command): support direct distance entry when dynamic input is disabled
This commit is contained in:
1 parent
960d51d955
commit
33dfbf9230
3 files changed
+149
-19
No files matched your search
@@ -929,6 +929,16 @@ impl OpenCADStudio {
|
||||
self.push_ucs_to_cmd(i);
|
||||
return self.feed_command(StepInput::Point(wcs));
|
||||
} else {
|
||||
let consumed = self.tabs[i]
|
||||
.active_cmd
|
||||
.as_mut()
|
||||
.and_then(|c| c.on_text_input(token));
|
||||
if let Some(r) = consumed {
|
||||
return self.apply_cmd_result(r);
|
||||
}
|
||||
if let Some(task) = self.try_direct_distance_entry(token) {
|
||||
return task;
|
||||
}
|
||||
return self.feed_command(StepInput::Text(token.to_string()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user