Keyboard Support
Keyboard support is comprised of command key, focus key, and keyboard navigation.
RadNavigation will seamlessly switch between mouse and keyboard navigation.
In order to configure keyboard support with RadNavigation its KeyboardNaviagationSettings should be set:
<telerik:RadNavigation ID="RadNavigation1" runat="server" >
<KeyboardNavigationSettings CommandKey="Alt" FocusKey="M" />
<Nodes>
<telerik:NavigationNode Text="UI for ASP.NET Ajax" >
</telerik:NavigationNode>
<telerik:NavigationNode Text="UI for WinForms" >
</telerik:NavigationNode>
</Nodes>
</telerik:RadNavigation>
The KeyboardNavigationSettings exposes two properties to configure the keyboard combination that sets focus to the control:
- FocusKey: An upper-case letter or number.
- CommandKey: Ctrl , Alt, Shift, or any combination of two of these keys.
When there are multiple Navigation controls on a given page, each of them may have a different activation combination.
In this particular example, the [CommandKey] and the [FocusKey] can be customized in the Demo Configurator.
Note: It is recommended to avoid [CommandKey] + [FocusKey] combinations matching keyboard shortcuts used in the browsers. If the combination coincides with an existing shortcut the control may be unable to focus.
Pressing [CommandKey] + [FocusKey]) puts the focus on the first Navigation node allowing you to navigate the nodes:
- Pressing Left or Right Arrow keys will navigate through the nodes.
- Pressing Down or Up Arrow keys will expand submenus with child nodes.
- Pressing Enter or Spacer keys will select the focused node and expand its submenu
- Pressing Esc will close the expanded submenu