Skip to content

fix(gpui): add the standard macOS menus and shortcuts - #92

Merged
yeagoo merged 2 commits into
mainfrom
fix/gpui-macos-menus
Oct 24, 2026
Merged

yeagoo merged 2 commits into
mainfrom
fix/gpui-macos-menus

Conversation

@yeagoo

@yeagoo yeagoo commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

概要

生命周期修复计划 PR-C:补齐 macOS 标准菜单与快捷键。

  • 应用菜单:关于、设置…(⌘,)、服务、隐藏(⌘H)、隐藏其他(⌥⌘H)、全部显示、退出
  • 文件:打开…、关闭窗口(⌘W,经退出协调器)
  • 编辑:撤销/重做/剪切/拷贝/粘贴/全选;只读文本框获得焦点时粘贴不再导入文件
  • 窗口:最小化(⌘M)、缩放、切换全屏幕(⌃⌘F)
  • vendored gpui-pre-macos:setServicesMenu 改为传入子菜单,修复服务菜单为空
  • 九种语言文案;偏差记录见计划 §7

验证

  • GPUI 测试与 clippy 全过
  • macOS 13.6 虚拟机:菜单结构与快捷键经辅助功能树核对;服务菜单有系统项;最小化、关闭窗口(空闲即退出)实测正常
  • Codex 评审:无阻塞问题,两项 P2 与一项 P3 已修复,其余记录为偏差

🤖 Generated with Claude Code

yeagoo and others added 2 commits October 25, 2026 03:12
The application menu gains About, Settings (Cmd-,), Services, Hide,
Hide Others and Show All; File gains Close Window (Cmd-W, through the quit
coordinator); Edit gains Undo, Redo, Cut, Copy and Select All; a Window
menu offers Minimize (Cmd-M), Zoom and full screen. Edit > Paste no longer
imports files while a read-only text field has focus. The vendored macOS
platform now hands AppKit the Services submenu instead of its item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings scrolls the panel back to the format cards, About no longer
stacks a second licenses dialog, and the full-screen item uses a
state-independent Toggle Full Screen label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yeagoo
yeagoo merged commit 96a7241 into main Oct 24, 2026
10 checks passed
@yeagoo
yeagoo deleted the fix/gpui-macos-menus branch October 24, 2026 19:39
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.

1 participant