Remove enter-to-autocomplete

see http://sonohara.donmai.us/forum_topics/10558
This commit is contained in:
Toks
2014-05-11 11:08:45 -04:00
parent 9a7b7e9b87
commit ac13636d7b

View File

@@ -116,17 +116,6 @@ $.widget( "ui.autocomplete", {
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
case keyCode.ENTER:
case keyCode.NUMPAD_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();