cbess/Better-Autocomplete — pull request #1 by balintk (2012-04-17 15:02:35+00:00)
Title: New option: select highlighted item automatically

I would like to fully mimic the autocomplete behavior of google.com. I started working with the original Better Autocomplete project, then I saw your fork and pull request, which was a great start for me to implement the behavior what I want.
I have added a new option, called *autoSelect*. It works well with your additions; if you use up and down keys, **the item** will be selected automatically -- by that I mean it **will be copied to the search field right away**. The *select* callback will be fired in this case as well, but I have added a new parameter, which will be true in this case. So the developers can differentiate these kind of select event with the usual one. E.g. I would like to submit the form when users select an item with using the Enter key or clicking with their mouse on an item, so I submit the form in my custom select callback only if the *autoSelection* parameter is false.
I request pulling my code to your repository from you first, and if you think it's good, it could be a part of [your pull request](https://github.com/betamos/Better-Autocomplete/pull/16).