@@ -229,3 +229,52 @@ application root module.
229229})
230230export class MyApp {}
231231```
232+ ### Accessibility
233+ The ` MdDatepickerInput ` directive adds ` aria-haspopup ` attribute to the native input element, and it
234+ triggers a calendar dialog with ` role="dialog" ` .
235+
236+ ` MdDatepickerIntl ` includes strings that are used for ` aria-label ` s. The datepicker input
237+ should have a placeholder or be given a meaningful label via ` aria-label ` , ` aria-labelledby ` or
238+ ` MdDatepickerIntl ` .
239+
240+ #### Keyboard shortcuts
241+ The keyboard shortcuts to handle datepicker are:
242+
243+ | Shortcut | Action |
244+ | ----------------------| -------------------------------------|
245+ | ` ALT ` + ` DOWN_ARROW ` | Open the calendar pop-up |
246+ | ` ESCAPE ` | Close the calendar pop-up |
247+
248+
249+ In month view:
250+
251+ | Shortcut | Action |
252+ | ----------------------| -------------------------------------|
253+ | ` LEFT_ARROW ` | Go to previous day |
254+ | ` RIGHT_ARROW ` | Go to next day |
255+ | ` UP_ARROW ` | Go to same day in the previous week |
256+ | ` DOWN_ARROW ` | Go to same day in the next week |
257+ | ` HOME ` | Go to the first day of the month |
258+ | ` END ` | Go to the last day of the month |
259+ | ` PAGE_UP ` | Go to previous month |
260+ | ` ALT ` + ` PAGE_UP ` | Go to previous year |
261+ | ` PAGE_DOWN ` | Go to next month |
262+ | ` ALT ` + ` PAGE_DOWN ` | Go to next year |
263+ | ` ENTER ` | Select current date |
264+
265+
266+ In year view:
267+
268+ | Shortcut | Action |
269+ | ----------------------| -------------------------------------|
270+ | ` LEFT_ARROW ` | Go to previous month |
271+ | ` RIGHT_ARROW ` | Go to next month |
272+ | ` UP_ARROW ` | Go to previous 6 months |
273+ | ` DOWN_ARROW ` | Go to next 6 months |
274+ | ` HOME ` | Go to the first month of the year |
275+ | ` END ` | Go to the last month of the year |
276+ | ` PAGE_UP ` | Go to previous year |
277+ | ` ALT ` + ` PAGE_UP ` | Go to previous 10 years |
278+ | ` PAGE_DOWN ` | Go to next year |
279+ | ` ALT ` + ` PAGE_DOWN ` | Go to next 10 years |
280+ | ` ENTER ` | Select current month |
0 commit comments