Fix regressed autocomplete changes

also update the patch file
This commit is contained in:
Toks
2014-10-17 12:29:38 -04:00
committed by r888888888
parent b3dbd0be4c
commit dbe4a7ebf6
2 changed files with 19 additions and 17 deletions

View File

@@ -107,19 +107,9 @@ $.widget( "ui.autocomplete", {
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
case keyCode.SPACE:
case keyCode.ENTER:
// when menu is open and has focus
if ( this.menu.active ) {
// #6055 - Opera still allows the keypress to occur
// which causes forms to submit
suppressKeyPress = true;
event.preventDefault();
this.menu.select( event );
}
break;
case keyCode.TAB:
if ( this.menu.active ) {
event.preventDefault();
this.menu.select( event );
}
break;