Skip to content

[1160] 绘图模式 e 快捷键切换到当前选中对象的插入模式 - #4120

Merged
AXeonV merged 2 commits into
mainfrom
da/1160/again
Jul 30, 2026
Merged

[1160] 绘图模式 e 快捷键切换到当前选中对象的插入模式#4120
AXeonV merged 2 commits into
mainfrom
da/1160/again

Conversation

@da-liii

@da-liii da-liii commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 按下 e:在 (group-edit edit-props) 模式下,由当前选中对象的 tag 推导插入模式并切换(如选中折线 → (edit spline)),不再用 set! 记录上一次插入类型
  • 移除初版的 last-inserted-type 状态变量及 graphics-remember-inserted-type / graphics-last-inserted-typegraphics-env.scm / graphics-main.scm 恢复无额外状态
  • 新增 graphics-insertable-tags 白名单,与插入菜单的 (edit <tag>) 一一对应;未选中/多选/白名单外对象时 no-op

Test plan

  • xmake b stem 构建通过
  • headless 启动冒烟正常
  • GUI 手测:画完折线后按 e 继续画折线;选中已有圆按 e 进入 (edit circle);多选时按 e 无反应

🤖 Generated with Claude Code

@AXeonV AXeonV left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AXeonV
AXeonV merged commit 52bddc6 into main Jul 30, 2026
3 checks passed
@AXeonV
AXeonV deleted the da/1160/again branch July 30, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants