(function($){
    var keyFocusConf = {
        keyFocusClass : 'keyboard-focus',
        mouseFocusClass : 'mouse-focus'
    };
    $(document).ready(function(){
        $('body').trackFocus();
    });
    $.fn.trackFocus = function () {
        var that = $(this);
        that
            .bind('mousedown', function(e){
                that.removeClass(keyFocusConf.keyFocusClass);
                that.addClass(keyFocusConf.mouseFocusClass);
            })
            .bind('keydown', function(e){
                that.removeClass(keyFocusConf.mouseFocusClass);
                that.addClass(keyFocusConf.keyFocusClass);
            });
    };
})(jQuery);

@@ -488,32 +488,70 @@
 ', function(e)%7B%0A
+                if(e.keyCode==9)%7B%0A    
                 
@@ -606,32 +606,36 @@
                 
+    
 that.addClass(ke
@@ -653,32 +653,50 @@
 keyFocusClass);%0A
+                %7D%0A
             %7D);%0A

make sure it's a tab