children.length) break; } while (children[index].getAttribute("hidden") == "true" || children[index].disabled); // XXX check for collapsed attr and display/visibility props too this.selectedItem = children[index]; children[index].doCommand(); } else { do { index = i > 0 ? --i : (i = children.length - 1); if (i == children.length) break; } while (children[index].getAttribute("hidden") == "true" || children[index].disabled); // XXX check for collapsed attr and display/visibility props too this.selectedItem = children[index]; children[index].doCommand(); } ]]> [] this this.selectedItem = this.focusedItem; this.selectedItem.doCommand(); this.checkAdjacentElement(false); event.preventBubble(); this.checkAdjacentElement(false); event.preventBubble(); this.checkAdjacentElement(true); event.preventBubble(); this.checkAdjacentElement(true); event.preventBubble(); if (event.target == this) { this.setAttribute("focused", "true"); if (!this.focusedItem) this.focusedItem = this.selectedItem; } this.removeAttribute("focused"); this.focusedItem = null;