Blazor Calendar Example - Keyboard Navigation
Calendar functionalities can be interactive with keyboard shortcuts. In the below sample, various key combinations can be used to interact with Calendar.
August 2024
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 28 | 29 | 30 | 31 | 1 | 2 | 3 |
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
The Calendar supports the following keyboard shortcuts to initiate various actions.
- Focus
- Alt + J - Focuses on the first component of the sample.
- Selection
- Enter - Selects the currently focused date.
- Navigation
- Up arrow - Focuses the same day on the previous week.
- Down arrow - Focuses the same day on the next week.
- Left arrow - Focuses the previous day.
- Right arrow - Focuses the next day.
- Home - Focuses the first day of the month.
- End - Focuses the last day of the month.
- Page up - Focuses the same date on the previous month.
- Page down - Focuses the same date on the next month.
- Shift + Page up - Focuses the same date on the previous year.
- Shift + Page down - Focuses the same date on the next year.
- Ctrl + Home - Focuses the first date of the current year.
- Ctrl + End - Focuses the last date of the current year.
- View Navigation
- Ctrl + Up arrow - Moves to the inner level of view like month to year and year to decade.
- Ctrl + Down arrow - Moves out from the depth level view like decade to year and year to month.