code: function(ctx, flag, _calledByNodeSetFocus) {
  		flag = (flag !== false);
  
  		// this.debug("treeSetFocus(" + flag + "), _calledByNodeSetFocus: " + _calledByNodeSetFocus);
  		// this.debug("    focusNode: " + this.focusNode);
  		// this.debug("    activeNode: " + this.activeNode);
  		if( flag !== this.hasFocus() ){
  			this._hasFocus = flag;
  			this.$container.toggleClass("fancytree-treefocus", flag);
  			this._triggerTreeEvent(flag ? "focusTree" : "blurTree");
  		}
  	}
docs: Widget got focus.
  @param {EventData} ctx
  @param {boolean} [flag=true]