Skip to content

fix: 修复 macOS 复制粘贴快捷键 - #5

Merged
quietseek merged 1 commit into
quietseek:mainfrom
yyyzl:fix/macos-edit-shortcuts
Nov 18, 2026
Merged

quietseek merged 1 commit into
quietseek:mainfrom
yyyzl:fix/macos-edit-shortcuts

Conversation

@yyyzl

@yyyzl yyyzl commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

问题与修复

macOS 下编辑菜单的复制、粘贴只有系统动作,没有对应快捷键,导致 Command+C / Command+V 无法通过菜单触发。为这两个菜单项补充标准快捷键,并保留原有系统动作。

Closes #2

验证

  • macOS 回归测试先在原代码上失败,修改后通过:go test . -run '^TestMacEditingMenuShortcuts$' -count=1。
  • go test ./... 通过。
  • npm run build 通过。
  • 在隔离的 macOS 候选程序中,选中文字后使用 Command+C、Command+V 验证复制粘贴,并验证 Command+Z 仍可撤销;候选程序同时包含独立的全屏按钮修复。

@yyyzl
yyyzl marked this pull request as ready for review November 16, 2026 13:33
@quietseek
quietseek merged commit 23e9517 into quietseek:main Nov 18, 2026
quietseek added a commit that referenced this pull request Nov 18, 2026
编辑菜单的 SetRole 不会附带快捷键,#5 只补了复制与粘贴,这里一并补上 Cmd+X 与 Cmd+A。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

macOS 下复制、粘贴等编辑快捷键失效

2 participants