tinymce.full.js
function (keyboard) {
        var self = this, focusCtrl, keyboardNav, items;

        if (keyboard) {
          keyboardNav = self.keyboardNav || self.parents().eq(-1)[0].keyboardNav;

          if (keyboardNav) {
            keyboardNav.focusFirst(self);
            return;
          }
        }

        items = self.find('*');

        // TODO: Figure out a better way to auto focus alert dialog buttons
        if (self.statusbar) {
          items.add(self.statusbar.items());
        }

        items.each(function (ctrl) {
          if (ctrl.settings.autofocus) {
            focusCtrl = null;
            return false;
          }

          if (ctrl.canFocus) {
            focusCtrl = focusCtrl || ctrl;
          }
        });

        if (focusCtrl) {
          focusCtrl.focus();
        }

        return self;
      }
function (keyboard) {
        var self = this, focusCtrl, keyboardNav, items;

        if (keyboard) {
          keyboardNav = self.keyboardNav || self.parents().eq(-1)[0].keyboardNav;

          if (keyboardNav) {
            keyboardNav.focusFirst(self);
            return;
          }
        }

        items = self.find('*');

        // TODO: Figure out a better way to auto focus alert dialog buttons
        if (self.statusbar) {
          items.add(self.statusbar.items());
        }

        items.each(function (ctrl) {
          if (ctrl.settings.autofocus) {
            focusCtrl = null;
            return false;
          }

          if (ctrl.canFocus) {
            focusCtrl = focusCtrl || ctrl;
          }
        });

        if (focusCtrl) {
          focusCtrl.focus();
        }

        return self;
      }
function ( keyboard ) { var self = this , focusCtrl , keyboardNav , items ; if ( keyboard ) { keyboardNav = self . keyboardNav || self . parents ( ) . eq ( - 1 ) [ 0 ] . keyboardNav ; if ( keyboardNav ) { keyboardNav . focusFirst ( self ) ; return ; } } items = self . find ( '*' ) ; // TODO: Figure out a better way to auto focus alert dialog buttons if ( self . statusbar ) { items . add ( self . statusbar . items ( ) ) ; } items . each ( function ( ctrl ) { if ( ctrl . settings . autofocus ) { focusCtrl = null ; return false ; } if ( ctrl . canFocus ) { focusCtrl = focusCtrl || ctrl ; } } ) ; if ( focusCtrl ) { focusCtrl . focus ( ) ; } return self ; }
Focuses the current container instance. This will look
for the first control in the container and focus that.

@method focus
@param {Boolean} keyboard Optional true/false if the focus was a keyboard focus or not.
@return {tinymce.ui.Collection} Current instance.
Focuses the current container instance . This will look for the first control in the container and focus that .