diff -r 000000000000 -r 6474c204b198 toolkit/content/widgets/radio.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/content/widgets/radio.xml Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,520 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + null + + + + + + + + + + + + + + + + return this._getRadioChildren().indexOf(item); + + + + + + + = 0 && index < children.length) ? children[index] : null; + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if (this.disabled) + event.preventDefault(); + + + + + + this.selectedItem = this.focusedItem; + this.selectedItem.doCommand(); + + + this.checkAdjacentElement(false); + event.stopPropagation(); + + + // left arrow goes back when we are ltr, forward when we are rtl + this.checkAdjacentElement(document.defaultView.getComputedStyle( + this, "").direction == "rtl"); + event.stopPropagation(); + + + this.checkAdjacentElement(true); + event.stopPropagation(); + + + // right arrow goes forward when we are ltr, back when we are rtl + this.checkAdjacentElement(document.defaultView.getComputedStyle( + this, "").direction == "ltr"); + event.stopPropagation(); + + + + + + + + this.removeAttribute("focused"); + this.focusedItem = null; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +