Changeset 12716
- Timestamp:
- 02/26/08 13:37:10 (11 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/Dialog.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/Dialog.js
r12706 r12716 213 213 dojo.attr(this.domNode, "tabindex", "0"); 214 214 this._firstFocusItem = this.domNode; 215 }215 } 216 216 } 217 217 … … 451 451 focusItem = dijit.getLastInTabbingOrder(this.containerNode); 452 452 this._lastFocusItem = focusItem ? focusItem : this._firstFocusItem; 453 if(dojo.isMoz && this._firstFocusItem.tagName.toLowerCase() == "input" && dojo.attr(this._firstFocusItem, "type").toLowerCase() == "file"){ 454 //FF doesn't behave well when first element is input type=file, set first focusable to dialog container 455 dojo.attr(this.containerNode, "tabindex", "0"); 456 this._firstFocusItem = this.containerNode; 457 } 453 458 }, 454 459