Keyboard interaction

KeyAction
Left and right arrowsPrevious or next day. Mirrored in right-to-left text.
Up and down arrowsPrevious or next week.
Home and EndFirst or last day of the week.
Page Up and Page DownPrevious or next month; with Shift, year.
Enter or SpaceChoose the day, or zoom in on a month or year.
EscapeDrop the first end of a range, or zoom back in.

Accessibility notes

  • Each month is a grid named by its title, with the weekdays’ full names in abbr.
  • Every day is named by its full date, with “Today”, “unavailable” and the ends of a range added. aria-selected marks what’s chosen, and aria-disabled what can’t be.
  • The grid is one tab stop, with a roving tabindex. The previous and next buttons announce the new month.