Automatically focus first autocomplete result

In order to do this space-to-complete needs to be removed too since it
doesn't work together with autofocus. I think this is a good thing
anyway as it can cause accidental selections when typing. And we already
have two other shortcuts for this too (enter and tab).
This commit is contained in:
Toks
2014-04-28 15:07:09 -04:00
parent 22f2a76569
commit e84934bf78
2 changed files with 2 additions and 1 deletions

View File

@@ -116,7 +116,6 @@ $.widget( "ui.autocomplete", {
suppressKeyPress = true;
this._keyEvent( "next", event );
break;
case keyCode.SPACE:
case keyCode.ENTER:
case keyCode.NUMPAD_ENTER:
// when menu is open and has focus