fabiomcosta / mootools-meio-autocomplete

A complete mootools Autocomplete plugin
http://www.meiocodigo.com/projects/meio-autocomplete/
32 stars 14 forks source link

Select/focus single result item #16

Closed RiZKiT closed 11 years ago

RiZKiT commented 12 years ago

If only one item is the result, that item is selected / focused. As a side effect, you can accept that value by pressing enter.

Maybe not the perfect solution but less intrusive.

fabiomcosta commented 12 years ago

Hi RiZKIT,

What do you think about adding an 'autoFocus' option? It would always focus the first option, no matter what. I think that adding "special cases" makes the widget more challenging to use for the user.

RiZKiT commented 12 years ago

Always selecting the first option is a good idea and is more predictable to the user. +1

Adding it as an option sounds good and I thought about it too, but left it out to simplify the pull request. ;-)