material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[DatePicker] keyboard accessibility

Open paramsingh88 opened this issue 10 years ago • 5 comments

Isn't there a way to focus the datepicker and timepicker through keyboard during the normal navigation using the tab key?

Related issue: mui/mui-x#6232.

paramsingh88 avatar Nov 22 '16 07:11 paramsingh88

I have the same issue. Anyone solved it somehow?

rszczypka avatar Nov 30 '16 20:11 rszczypka

I see the onFocus event gets called when DatePicker's TextField receives focus, however the TextField is not hightlighted to indicate focus.

Additionally, onKeyDown does not trigger when DatePicker is focused.

kbrownhbs avatar Dec 01 '16 00:12 kbrownhbs

I added this fix... The DatePicker was actually receiving focus, but the component was triggering blur on the TextField in the DatePicker. Also missing from the DatePicker was the onBlur function, which the documentation already listed, but wasn't actually in the component.

With the PR it will cycle through the DatePicker and TimePicker and show/dismiss the DatePickerDialog as it focuses/blurs.

Perhaps it was a design choice to blur the TextField when it receives focus, but it didn't make much sense to me.

martin-bb avatar Dec 07 '16 12:12 martin-bb

Seems like all the PRs related to this have been closed. Is there currently any work being done on adding tab-support to the datepicker?

zbabtkis avatar Feb 17 '17 21:02 zbabtkis

Closing for mui/material-ui#4787

oliviertassinari avatar Aug 22 '17 22:08 oliviertassinari