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

ToolBar - Keyboard Navigation

  • 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

Overview

The ToolBar is a single tab stop component. All focus movements inside the ToolBar are managed according to the logic of the roving tabindex. When the user navigates through the tabs, the ToolBar focuses the first tool.

  • Tab Moves the focus to and from the ToolBar.
  • Right Arrow Moves focus to the next focusable element in the ToolBar. Focuses first element if the end of the ToolBar is reached.
  • Left Arrow Moves focus to the previous focusable element in the ToolBar. Focuses last element if the beginning of the ToolBar is reached.
  • Home Moves focus to the first focusable element.
  • End Moves focus to the last focusable element.
  • Enter Clicks the currently active button or changes the state of the currently active toggleable button. If the active tool is represented by an input or a select element, enters the tool inner navigation mode.
  • Esc If the active tool is represented by an input or a select element and its inner navigation is active, deactivates the tool navigation and returns focus to the ToolBar.

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 ToolBar is always enabled, as demonstrated in this demo.

This Blazor ToolBar 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.