Skip to content

Commit ac13636

Browse files
committedMay 11, 2014
Remove enter-to-autocomplete
see http://sonohara.donmai.us/forum_topics/10558
1 parent 9a7b7e9 commit ac13636

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed
 

‎vendor/assets/javascripts/jquery-ui-autocomplete-custom.js

-11
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,6 @@ $.widget( "ui.autocomplete", {
116116
suppressKeyPress = true;
117117
this._keyEvent( "next", event );
118118
break;
119-
case keyCode.ENTER:
120-
case keyCode.NUMPAD_ENTER:
121-
// when menu is open and has focus
122-
if ( this.menu.active ) {
123-
// #6055 - Opera still allows the keypress to occur
124-
// which causes forms to submit
125-
suppressKeyPress = true;
126-
event.preventDefault();
127-
this.menu.select( event );
128-
}
129-
break;
130119
case keyCode.TAB:
131120
if ( this.menu.active ) {
132121
event.preventDefault();

0 commit comments

Comments
 (0)
Please sign in to comment.