Changeset 12716

Show
Ignore:
Timestamp:
02/26/08 13:37:10 (11 months ago)
Author:
becky
Message:

refs #5934 I made the same change for tooltip dialog as for dialog- if input type=file is first focusable element and isMoz then set focus to the tooltip dialog container. Even tho tooltip dialog doesn't have the exact focus issues as dialog becuz setting programmatic focus to an input type=file in FF only sets focus to the browse button part - this fix is needed to user can get focus into the textbox part of input field when it is first element in tooltip dialog

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Dialog.js

    r12706 r12716  
    213213                                        dojo.attr(this.domNode, "tabindex", "0"); 
    214214                                        this._firstFocusItem = this.domNode; 
    215                                         } 
     215                                } 
    216216                        } 
    217217 
     
    451451                        focusItem = dijit.getLastInTabbingOrder(this.containerNode); 
    452452                        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                        } 
    453458                }, 
    454459