packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
           * Scrolls to element if out of view, then focuses it
           *
           * @method moveToAndFocus
           * @param selector - jQuery selector for element
           * @return {Object}
           */
Scrolls to element if out of view, then focuses it
@method moveToAndFocus
@param selector - jQuery selector for element
@return {Object}
Scrolls to element if out of view then focuses it @method moveToAndFocus @param selector - jQuery selector for element @return { Object }
function moveToAndFocus(selector) {
              selectorsWithTitlesModified.push(selector);
              addShortcutsToTitle(selector);
              executor.add(function (e) {
                  var $elem = (0, _jquery2.default)(selector);
                  if ($elem.length > 0) {
                      $elem.focus();
                      if ($elem.moveTo) {
                          $elem.moveTo();
                      }
                      if ($elem.is(':input')) {
                          e.preventDefault();
                      }
                  }
              });
              return this;
          }
function moveToAndFocus ( selector ) { selectorsWithTitlesModified . push ( selector ) ; addShortcutsToTitle ( selector ) ; executor . add ( function ( e ) { var $elem = ( 0 , _jquery2 . default ) ( selector ) ; if ( $elem . length > 0 ) { $elem . focus ( ) ; if ( $elem . moveTo ) { $elem . moveTo ( ) ; } if ( $elem . is ( ':input' ) ) { e . preventDefault ( ) ; } } } ) ; return this ; }
Scrolls to element if out of view, then focuses it
 @method moveToAndFocus
 @param selector - jQuery selector for element
 @return {Object}
Scrolls to element if out of view then focuses it @method moveToAndFocus @param selector - jQuery selector for element @return { Object }