rem: $('ajaxlogin_pass').object.onblur = function() { $('messageBox').object.nextSibling.firstChild.focus(); }; 
add: $('ajaxlogin_pass').object.onblur = function(e) { if ( !shift ) $('messageBox').object.nextSibling.firstChild.focus(); }; $('ajaxlogin_pass').object.onkeypress = function(e) { if ( e.keyCode == 13 ) $('messageBox').object.nextSibling.firstChild.click(); }; 
context:   ajaxGet(makeUrlNS('Special', 'Login', 'act=getkey'), function() {      if ( ajax.readyState == 4 )      {        var response = ajax.responseText;        if ( response.substr(0,1) != '{' )        {          alert('Invalid JSON response from server: ' + response);          return false;        }        response = parseJSON(response);        var form_html = ' \          <table border="0" align="center"> \            <tr> \              <td>Username:</td><td><input tabindex="1" id="ajaxlogin_user" type="text"     size="25" /> \            </tr> \            <tr> \              <td>Password:</td><td><input tabindex="2" id="ajaxlogin_pass" type="password" size="25" /> \            </tr> \            <tr> \              <td colspan="2" style="text-align: center;"> \                <br /><small>Trouble logging in? Try the <a href="'+makeUrlNS('Special', 'Login/' + title)+'">full login form</a>.<br /> \                Did you <a href="'+makeUrlNS('Special', 'PasswordReset')+'">forget your password</a>?<br /> \                Maybe you need to <a href="'+makeUrlNS('Special', 'Register')+'">create an account</a>.</small> \              </td> \            </tr> \          </table> \          <input type="hidden" id="ajaxlogin_crypt_key"       value="' + response.key + '" /> \          <input type="hidden" id="ajaxlogin_crypt_challenge" value="' + response.challenge + '" /> \        </form>';        ajax_auth_mb_cache.updateContent(form_html);        $('messageBox').object.nextSibling.firstChild.tabindex = '3';        $('ajaxlogin_user').object.focus();        $('ajaxlogin_pass').object.onblur = function() { $('messageBox').object.nextSibling.firstChild.focus(); };      }    });
meta: 3765	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3765/cee948b2de3cd476a9d0123d17c08438d15a9272/misc.js/clean/includes/clientside/static/misc.js