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

Fix AccessKeyHandler matching on elements that are not effectively enabled. #13185

Merged
merged 2 commits into from Oct 13, 2023

Conversation

boydpatterson
Copy link
Contributor

What does the pull request do?

Updates AccessKeyHandler so that, when attempting to match an IInputElement for an access key, it ignores any element that is effectively disabled.

What is the current behavior?

AccessKeyHandler matches the first registered element, even if it is disabled and another match is enabled.

What is the updated/expected behavior with this PR?

AccessKeyHandler matches the first registered element that is enabled. This is also consistent with WPF.

How was the solution implemented (if it's not obvious)?

Added an additional condition to the match logic.

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #13184

@boydpatterson
Copy link
Contributor Author

@dotnet-policy-service agree [company="Actipro Software LLC"]

@boydpatterson
Copy link
Contributor Author

@dotnet-policy-service agree company="Actipro Software LLC"

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0040830-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@grokys grokys added this pull request to the merge queue Oct 13, 2023
Merged via the queue into AvaloniaUI:master with commit 98acdd7 Oct 13, 2023
6 checks passed
@grokys grokys added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Oct 13, 2023
@grokys grokys added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AccessKeyHandler should not match on disabled elements
3 participants