Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 控件焦点不正确 #3694

Closed
Glavo opened this issue Mar 3, 2025 · 2 comments · Fixed by #3717
Closed

[Bug] 控件焦点不正确 #3694

Glavo opened this issue Mar 3, 2025 · 2 comments · Fixed by #3717
Labels

Comments

@Glavo
Copy link
Member

Glavo commented Mar 3, 2025

问题描述 | Bug Description

每次进入新页面或打开新对话框时,一些控件会意外的获得焦点。

由于我们禁止了标题栏按钮获得焦点,现在每次打开进度对话框时“取消”按钮会取得焦点,这可能会造成更多误触。

@Glavo Glavo added the bug label Mar 3, 2025
@3gf8jv4dv
Copy link
Contributor

现在一些对话框的焦点我觉得是合理的,与 Windows 的行为相符,例如一些带表示「确定」和「取消」按钮的对话框。
这类对话框在「禁止标题栏按钮获得焦点」之前,其按钮不会获得焦点(某种意义上算 bug 吧)。

现在每次打开进度对话框时“取消”按钮会取得焦点

我认为对某些不合适的场合排除下应该就够了。

@Glavo
Copy link
Member Author

Glavo commented Mar 8, 2025

现在一些对话框的焦点我觉得是合理的,与 Windows 的行为相符,例如一些带表示「确定」和「取消」按钮的对话框。 这类对话框在「禁止标题栏按钮获得焦点」之前,其按钮不会获得焦点(某种意义上算 bug 吧)。

现在每次打开进度对话框时“取消”按钮会取得焦点

我认为对某些不合适的场合排除下应该就够了。

HMCL 现在在焦点管理方面的问题很大,想要让拥有符合直觉的焦点遍历功能需要付出更多努力。在这项功能不完善的情况下,我们不应当让它暴露在大多数用户面前。

@Glavo Glavo linked a pull request Mar 8, 2025 that will close this issue
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 a pull request may close this issue.

2 participants