dist/garnish.js
function($item, preventScroll) {
            if (preventScroll) {
                var scrollLeft = Garnish.$doc.scrollLeft(),
                    scrollTop = Garnish.$doc.scrollTop();
                $item.focus();
                window.scrollTo(scrollLeft, scrollTop);
            }
            else {
                $item.focus();
            }

            this.$focusedItem = $item;
            this.trigger('focusItem', {item: $item});
        }
function($item, preventScroll) {
            if (preventScroll) {
                var scrollLeft = Garnish.$doc.scrollLeft(),
                    scrollTop = Garnish.$doc.scrollTop();
                $item.focus();
                window.scrollTo(scrollLeft, scrollTop);
            }
            else {
                $item.focus();
            }

            this.$focusedItem = $item;
            this.trigger('focusItem', {item: $item});
        }
function ( $item , preventScroll ) { if ( preventScroll ) { var scrollLeft = Garnish . $doc . scrollLeft ( ) , scrollTop = Garnish . $doc . scrollTop ( ) ; $item . focus ( ) ; window . scrollTo ( scrollLeft , scrollTop ) ; } else { $item . focus ( ) ; } this . $focusedItem = $item ; this . trigger ( 'focusItem' , { item : $item } ) ; }
Sets the focus on an item.
Sets the focus on an item .