-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: Button should not fire the click event on the space key when it is not active #16619
fix: Button should not fire the click event on the space key when it is not active #16619
Conversation
…ace key when it is not active
You can test this PR using the following package version. |
Hi @amwx , when you have time try this PR. |
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit torn here. Child controls are supposed to mark events as handled to avoid special cases in parent controls. Here, doing so with KeyDown
/KeyUp
will prevent TextInput
, so that's not a viable solution.
Since this PR solves a real problem, let's go with the focus check for now. I don't see any immediate issue with it, but that's the kind of change that might break unusual hierarchies. Let's be vigilant for future issues.
0d7ee20
to
abf9706
Compare
abf9706
to
348dce1
Compare
You can test this PR using the following package version. |
What does the pull request do?
What is the current behavior?
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Fixes #16184