potential fix for #1787

This commit is contained in:
r888888888
2013-06-21 13:08:36 -07:00
parent 435b4ae2dd
commit 254a08a011
2 changed files with 13 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ $.widget( "ui.autocomplete", {
if ( this.menu.active ) {
this.menu.select( event );
}
n.preventDefault();
event.preventDefault();
break;
case keyCode.ESCAPE:
if ( this.menu.element.is( ":visible" ) ) {
@@ -154,7 +154,7 @@ $.widget( "ui.autocomplete", {
keypress: function( event ) {
if ( suppressKeyPress ) {
suppressKeyPress = false;
event.preventDefault();
// event.preventDefault();
return;
}
if ( suppressKeyPressRepeat ) {