includes/clientside/static/misc.js
changeset 9 1e61232606d6
parent 1 fe660c52c48f
child 40 723bb7acf914
--- a/includes/clientside/static/misc.js	Wed Jun 13 19:53:18 2007 -0400
+++ b/includes/clientside/static/misc.js	Sat Jun 16 18:47:06 2007 -0400
@@ -342,7 +342,8 @@
         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(); };
+        $('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(); };
       }
     });
 }