Skip to content

[0156] PDF 标签页支持 Ctrl+W 关闭#3471

Merged
da-liii merged 2 commits into
mainfrom
da/0156/pdf_ctrl_w
May 22, 2026
Merged

[0156] PDF 标签页支持 Ctrl+W 关闭#3471
da-liii merged 2 commits into
mainfrom
da/0156/pdf_ctrl_w

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 22, 2026

Summary

  • PDF 阅读器标签页增加 Ctrl+W(macOS 为 Cmd+W)快捷键关闭支持。
  • PDFReaderWidget::keyPressEventeventFilter 中捕获快捷键,调用 safely-kill-tabpage 关闭当前标签页。

Test plan

  • 打开一个 PDF 文件,点击 PDF 阅读器区域使其获得焦点
  • 按 Ctrl+W(macOS 上按 Cmd+W),确认当前 PDF 标签页被关闭

🤖 Generated with Claude Code

da-liii and others added 2 commits May 22, 2026 18:14
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
在 PDFReaderWidget 的 keyPressEvent 和 eventFilter 中捕获
Ctrl+W(macOS 为 Cmd+W),触发 safely-kill-tabpage 关闭当前标签页。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@JackYansongLi JackYansongLi left a comment

Choose a reason for hiding this comment

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

LGTM

@da-liii da-liii merged commit 6750353 into main May 22, 2026
4 checks passed
@da-liii da-liii deleted the da/0156/pdf_ctrl_w branch May 22, 2026 10:32
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