Files
image-workbench-desktop/docs/standards
qiqi 5ed1172064
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m28s
fix(canvas): Esc 不再关闭右侧栏(用户明确要求)
现象:按 Esc 会把右侧栏(图库/提示词/风格库面板)连同里面的筛选、选中状态一起关掉,误按代价太大。

- src/ui-canvas-pointer.js:cancel 级联里删掉 `if (drawerOpen) setDrawerOpen(false)` 这一档。
  Esc 仍负责:取消拖拽/框选/连线 → 关连线菜单/右键菜单/工作台更多/设置弹窗 → 抓手复位
- 右侧栏仍可用:顶栏按钮 / N 键 / 拖拽分隔条(行为不变)
- tests/iwb-stability.spec.js:新增「Esc 不关闭右栏」用例(不用固定等待,toBeVisible 自带重试)

Tab 切换左右栏的方案已分析过,本次不动。
2026-11-29 13:13:50 +08:00
..