WebMenu has keyboard access and navigation for satisfying �1194.21(a) of Section 508 of the Rehabilitation Act.

Enabling Keyboard Access

To enable keyboard access, set the WebMenu.AccessorKeyCode property to a positive integer. The integer values are based on the unicode value of the desired key (see chart below). Keyboard access requires that the MenuBar.DisplayMode be a value other than "None".

Using Keyboard Combinations

You can set the WebMenu.AccessorModifier property to access the menu only when the CTRL, SHIFT, ALT or any combination of the 3 are also pressed along with the AccessorKeyCode.

Navigating the Menu

Intuitively for the user, once the menu is accessed, the arrow keys can be used to move focus and expand submenus. The Enter key executes the action of the highlighted item. To close the menu, the user either presses the access key again, or the ESC key.

Key Code Chart

The following chart was generated using IE (Windows) as a quick reference for the most common key codes. Note that not all browsers and platforms agree on the same code values, though typically they do share the first 128 values. The Keyboard Access sample included with WebMenu also contains a script that will report the keyCode value of any key that you press with a supported browser.

Key - KeyCode Key - KeyCode Key - KeyCode Key - KeyCode Key - KeyCode
ESC - 27 a - 65 b - 66 c - 67 d - 68
e - 69 f - 70 h - 72 i - 73 j - 74
k - 75 l - 76 m - 77 n - 78 o - 79
p - 80 q - 81 r - 82 s - 83 t - 84
u - 85 v - 86 w - 87 x - 88 y - 89
z - 90 1 - 49 2 - 50 3 - 51 4 - 52
5 - 53 6 - 54 7 - 55 8 - 56 9 - 57
0 - 48 ` - 192 - - 189 = - 187 [ - 219
] - 221 \ - 220 ; - 186 ' - 222 , - 188
. - 190 / - 191      

Copyright © Coalesys, Inc.