Skip to content

修复 Escape 退出全屏时同时返回上一级 - #7395

Open
lanqing431 wants to merge 1 commit into
HMCL-dev:mainfrom
lanqing431:fix/fullscreen-escape-navigation
Open

lanqing431 wants to merge 1 commit into
HMCL-dev:mainfrom
lanqing431:fix/fullscreen-escape-navigation

Conversation

@lanqing431

Copy link
Copy Markdown

F11 全屏后按 Escape,JavaFX 退出全屏的同时,导航器也收到 Escape 并返回上一级。现在由 Decorator 在事件到达导航器前处理全屏时的 Escape。窗口模式下 Escape 仍按原逻辑返回,F11 仍可切换全屏。这次沿用原有 F11 路径的平台范围,保留 macOS 原有行为。

验证

  • Windows 本地用 JavaFX Robot 对实际 Decorator 发出 F11 和 Escape。旧版退出全屏时导航栈同时回退。修复后第一次 Escape 退出全屏并留在当前页,第二次 Escape 在窗口模式下返回。
  • gradlew.bat build checkstyle checkTranslations --no-daemon --parallel --stacktrace 和 git diff --check 通过。

Fixes #7377.

@github-actions github-actions Bot added the 10+ label Nov 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 全屏模式下按esc恢复正常尺寸的同时会使启动器页面返回上一级

1 participant