C1WebCommand2 supports access and shortcut keys for all of its controls to make its controls more accommodating for all types of users. Access keys are used for navigating the entire user interface and typically use the Alt key plus the specified access key. Shortcut keys are commonly used to perform a quick action such as opening a menu item and they use the Ctrl key plus the specified shortcut key.
By default the KeyboardSupport property is set to True to enable keyboard control of the selected control. To use keyboard navigation effectively, you can use the TAB key to tab to set the focus for the desired control. Pressing the TAB key gets the standard input focus appearance for the control which is a dotted line around the inner border of the item in the control. Once the focus is set, you can navigate through the element by using its associated keyboard shortcuts.
You can apply shortcut keys by specifying the string for the shortcut key in the KeyboardShortcut. To enhance the user experience in your Web application you can display the shortcut keys next to each item by setting the ShowKeyboardShortCuts property to True.
Keyboard Navigation
The following table displays the action for each keyboard shortcut that is used for navigating a particular control through the keyboard:
Control |
Keyboard Shortcut |
Action |
All controls. |
ENTER, UP |
Move to the previous/next item in the group. |
Menu, Toolbar |
LEFT, RIGHT |
Move to the previous/next item in the horizontal layout for the control |
TreeView |
LEFT, RIGHT |
Move to the previous/next item or collapse/expand node. This is similar to the navigation command in XP's TreeView control. |
TreeView |
NUM +, NUM - |
Pressing "Num +" expands the node and pressing "Num –" collapses the node. This is similar to the navigation command in XP's TreeView control. |
TopicBar |
ENTER |
Pressing "Enter" expands/collapses the group. |
TabStrip |
LEFT, RIGHT |
Pressing the "Left" key moves focus to the previous |
For samples that demonstrate the shortcuts and keyboard navigation for C1WebCommand2, see http://helpcentral.componentone.com/Samples.aspx.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |