var tgt = null;
if(!evt){
evt ={ target: this._popupWidget.getHighlightedOption()};
}// what if nothing is highlighted yet?if(!evt.target){// handle autocompletion where the the user has hit ENTER or TABthis.setDisplayedValue(this.getDisplayedValue());
return;
// otherwise the user has accepted the autocompleted value}else{
tgt = evt.target;
}if(!evt.noHide){this._hideResultList();
this._setCaretPos(this.focusNode, this.store.getValue(tgt.item, this.searchAttr).length);
}this._doSelect(tgt);