laktek/jQuery-Smart-Auto-Complete — Issue #19: Pressing enter with no selection resets field
Author: lbriquet
Created: 2012-02-16 11:35:15+00:00
State: open

The jQuery Smart AutoComplete is powerful and very useful!

I was wondering if it is possible to configure the Smart AutoComplete so that if someone presses enter without selecting an item in the suggestion list so that the list remains visible and the field is not emptied? What I would like to do is force the user to choose one of the items in the list of suggestions.

Many people have the habit of typing in the search field and hitting the enter key, instead of pressing a button... and they may be frustrated to see that their search is not performed and the criteria they used has disappeared.

I've tried setting `forceSelect` option to false, but it had no impact.

Thank you in advance for your help!
lbriquet