Telerik RadToolBar provides keyboard support in the form of accessing the toolbar buttons with shortcut keys. The following properties should be set to enable keyboard support:
-
ShortcutKey - determines which of the two keys Alt or Ctrl is used in combination with the access key to place the focus on the respective toolbar button. The default value of the ShortcutKey property is Alt.
 |
Opera browser does not support detection of Alt key so you have to use Ctrl as a shortcut key. |
-
AccessKey - specifies the key which in combination with the shortcut key allows the end-user to focus on the respective toolbar button (e.g. Alt+W).
Example
Use the keyboard to activate the buttons on the toolbar:
New: Alt+N
Open: Alt+O
Save: Alt+S
Align-Left: Alt+L
Align-Right: Alt+R
Align-Center: Alt+C
Justify: Alt+J
* Opera browser does not support detection of the ALT key (You can use Ctrl instead).

| |
Copy Code |
|
<rad:radtoolbar runat="server" id="toolbar1" skin="macOS" UseFadeEffect="True"> <items> <rad:radtoolbarbutton AccessKey="n" Tooltip="New (Alt+N)" CommandName="New" /> <rad:radtoolbarbutton AccessKey="o" Tooltip="Open (Alt+O)" CommandName="Open" /> <rad:radtoolbarbutton AccessKey="s" Tooltip="Save (Alt+S)" CommandName="Save" /> <rad:radtoolbarseparator /> <rad:radtoolbartogglebutton AccessKey="l" Tooltip="Align Left (Alt+L)" ButtonGroup="Alignment" CommandName="alignLeft" /> <rad:radtoolbartogglebutton AccessKey="c" Tooltip="Align Center (Alt+C)" ButtonGroup="Alignment" CommandName="Center" /> <rad:radtoolbartogglebutton AccessKey="r" Tooltip="Align Right (Alt+R)" ButtonGroup="Alignment" CommandName="alignRight" /> <rad:radtoolbartogglebutton AccessKey="j" Tooltip="Justify (Alt+J)" ButtonGroup="Alignment" CommandName="Justify" /> </items> </rad:radtoolbar> |