[DatePicker] Add keyboard support for selecting day, month, and year#20859
Merged
Conversation
Signed-off-by: michel <jsnerdic@gmail.com>
|
Deploy preview: https://deploy-preview-20859--material-ui-x.netlify.app/ Bundle size report
|
…for consistency Signed-off-by: michel <jsnerdic@gmail.com>
flaviendelangle
approved these changes
Feb 18, 2026
Co-authored-by: Flavien DELANGLE <flaviendelangle@gmail.com> Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
auto-merge was automatically disabled
February 18, 2026 14:35
Pull request was closed
Contributor
|
Cherry-pick PRs will be created targeting branches: v8.x |
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 19, 2026
…20859) Signed-off-by: michel <jsnerdic@gmail.com> Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com> Co-authored-by: Flavien DELANGLE <flaviendelangle@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes an accessibility issue where users on iOS with VoiceOver and a Bluetooth keyboard were unable to select dates using the Space or Enter keys when 'Pass Through' mode was active.
While arrow key navigation worked (due to explicit onKeyDown handling), the selection logic relied on the browser's default behavior of converting Space/Enter into a click event on a focused button. In iOS 'Pass Through' mode, this default event synthesis often fails to reach the React event system, even though specific key events (like arrows) are still dispatched.
Added explicit handling for Enter and Space keys within the onKeyDown listeners of the calendar components. This ensures that the selection callback is triggered directly by the key event, mirroring how navigation is already handled.
Fixes #20632