New to Telerik UI for Blazor? Download Free 30-day trial

Calendar - Keyboard Navigation

Su Mo Tu We Th Fr Sa
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 1 2 3 4
5 6 7 8 9 10 11
  • Keyboard-navigation.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Focus

  • Alt + W focuses the first component in the example

Supported keys and user actions

Single and multiple selection mode

  • Down Arrow Moves focus to down cell, or navigates the view if currently focused date is in the last row of the current view period.
  • Up Arrow Moves focus to upper cell, or navigates the view if currently focused date is at the top row of the current view period.
  • Left Arrow Moves focus to previous cell.
  • Right Arrow Moves focus to next cell.
  • Enter Toggles the current date selection. If Shift is pressed and multiple selection is enabled, selects a range of dates. If Ctrl is pressed and multiple selection is enabled, toggles the current date selection leaving the other selection intact.
  • Ctrl + Up Arrow Navigates to the upper view (e.g., from current month days, to the year).
  • Ctrl + Down Arrow Navigates to the lower view (e.g., from the months in the year to the days of the month).
  • Ctrl + Right Arrow Navigates to the next period.
  • Ctrl + Left Arrow Navigates to the previous period.
  • Tab Moves focus between the different navigation elements - view selection, previous/next buttons, today button, and the grid with dates/months/years.
  • Shift + Tab Moves backwards through these focusable elements.
  • Home Focuses the first day of the month.
  • End Focuses the last day of the month.

Multiple Selection mode only

  • Ctrl + Enter Adds the highlighted day to the current selection. If that day was already selected it is removed from the selection.
  • Shift + Left Arrow Adds the previous date to the selected items.
  • Shift + Right Arrow Adds the next date to the selected items.
  • Shift + Up Arrow Extends selection up one row in month view.
  • Shift + Down Arrow Extends selection down one row in month view.
  • Shift + Space Performs range selection, selects all dates between the last selected one (with Enter or mouse click) and the one being currently focused.

Description

Keyboard navigation provides all web and app users with a fast keyboard-only navigation capability and is also part of the web accessibility features - it enables users with disabilities to fully control their website or app access through the keyboard.

By default, users can only navigate to links, buttons, and form controls with a keyboard. The navigation order in which interactive items receive keyboard focus has to be logical and intuitive. Generally, keyboard navigation logic needs to follow the visual horizontal and vertical flow of the page, for example, left to right and top to bottom, header first followed by the main and then the page navigation.

The keyboard navigation of the Telerik UI for Blazor Calendar is always enabled, as demonstrated in this demo.

This Blazor Calendar Keyboard Navigation example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.