Spry

Enable keyboard navigation

Making widgets accessible for keyboard navigation is an important part of every widget. Keyboard navigation lets the user control the widget with the Space bar or the Enter key.

The foundation of keyboard navigation is the tabIndex attribute. This attribute tells the browser how to use the tabs to navigate through the document.

 To enable keyboard navigation on the collapsible panel, add a TabIndex value to the collapsible panel tab tag, as follows:
<div id="CollapsiblePanel1" class="CollapsiblePanel">
	<div class="CollapsiblePanelTab" tabIndex="0">Tab</div>
	<div class="CollapsiblePanelContent">Content</div>
</div>

If the tabIndex attribute has a value of zero (0), the browser determines the order. If the tabIndex attribute has a positive integer value, that order value is used.

To enable keyboard navigation, wrap the tab content with an a tag.

Note: Using tabIndex on a div tag is not XHTML 1.0 compliant.

Comments

Comments are no longer accepted for Spry 1.4. Spry 1.6 is the current version. To discuss Spry 1.4, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/Spry/1.4/WS8CE4FA2B-DB96-404a-8FB7-915FD44829E3.html