YUI.add("autocomplete-list-keys",function(t,e){function i(){t.after(this._bindKeys,this,"bindUI"),this._initKeys()}i.prototype={_initKeys:function(){var t={},e={};t[40]=this._keyDown,e[13]=this._keyEnter,e[27]=this._keyEsc,e[9]=this._keyTab,e[38]=this._keyUp,this._keys=t,this._keysVisible=e},destructor:function(){this._unbindKeys()},_bindKeys:function(){this._keyEvents=this._inputNode.on("keydown",this._onInputKey,this)},_unbindKeys:function(){this._keyEvents&&this._keyEvents.detach(),this._keyEvents=null},_keyDown:function(){this.get("visible")?this._activateNextItem():this.show()},_keyEnter:function(t){var e=this.get("activeItem");if(!e)return!1;this.selectItem(e,t)},_keyEsc:function(){this.hide()},_keyTab:function(t){var e;return!(!this.get("tabSelect")||!(e=this.get("activeItem")))&&(this.selectItem(e,t),!0)},_keyUp:function(){this._activatePrevItem()},_onInputKey:function(t){var e,i=t.keyCode;this._lastInputKey=i,this.get("results").length&&(e=!(e=this._keys[i])&&this.get("visible")?this._keysVisible[i]:e)&&!1!==e.call(this,t)&&t.preventDefault()}},t.Base.mix(t.AutoCompleteList,[i])},"patched-v3.18.4",{requires:["autocomplete-list","base-build"]});