This commit is contained in:
r888888888
2013-07-02 18:25:43 -07:00
parent 3a31a5031b
commit ec5feaea4f

View File

@@ -132,7 +132,9 @@ $.widget( "ui.autocomplete", {
if ( this.menu.active ) {
this.menu.select( event );
}
event.preventDefault();
if ( !this.menu.element.is( ":visible" ) ) {
event.preventDefault();
}
break;
case keyCode.ESCAPE:
if ( this.menu.element.is( ":visible" ) ) {