Dispatch standard view commands through desktop router
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -69,6 +69,10 @@
|
||||
- **快捷键已写入 OPFS**:`freecad-parameters/web-shortcuts.json`;
|
||||
实测录制 `Ctrl+Shift+K` 后文件内容 `{"Std_About":"Ctrl+Shift+K"}`,0 pageError。
|
||||
运行时仍优先 localStorage 缓存,OPFS 作为持久层。
|
||||
- **标准视图/开关命令直连 dispatcher**:`Std_View*`、`Std_Toggle*`、`Std_DrawStyle`、
|
||||
BoxSelection 等不再打开 TaskFrame,而是走 `DesktopCommandDispatcher`
|
||||
的 scene/dock 命令(20 秒超时)。快捷键实测 `Std_ViewFitAll` 已进入内核,
|
||||
返回 “The current document has no mounted 3D view”(空文档前置未满足,符合预期)。
|
||||
- 说明:Python 控制台尚未接入;原生 Shortcut 参数同步待 P3。
|
||||
- 非 Part 菜单命令改为打开 **React TaskFrame 模态**(`web/src/shell/task-frame.tsx`),
|
||||
iframe 复用 `/workbench.html?module=<id>&command=<id>` 的现有任务面板;
|
||||
|
||||
Reference in New Issue
Block a user