Changeset 12766

Show
Ignore:
Timestamp:
02/28/08 10:28:57 (11 months ago)
Author:
becky
Message:

refs #6012 #6013 in _onKey only need to find focusable items when tab key is received since we only care about trapping navigation by tab and shift-tab

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/Dialog.js

    r12761 r12766  
    276276                        if(evt.keyCode){ 
    277277                                var node = evt.target; 
    278                                 this._getFocusItems(this.domNode); 
     278                                if (evt.keyCode == dojo.keys.TAB){ 
     279                                        this._getFocusItems(this.domNode); 
     280                                } 
    279281                                var singleFocusItem = (this._firstFocusItem == this._lastFocusItem); 
    280282                                // see if we are shift-tabbing from first focusable item on dialog 
     
    448450                        // summary: keep keyboard focus in dialog; close dialog on escape key 
    449451                        var node = evt.target; 
    450                         this._getFocusItems(this.containerNode); 
     452                        if (evt.keyCode == dojo.keys.TAB){ 
     453                                        this._getFocusItems(this.containerNode); 
     454                        } 
    451455                        var singleFocusItem = (this._firstFocusItem == this._lastFocusItem); 
    452456                        if(evt.keyCode == dojo.keys.ESCAPE){