Hi,

I started using Autocompleter.Local recently but discovered that it
had a few problems.  The way it's been implemented assumes that you
always want to select one of the matching entries in the autocomplete
drop-down.  If, for example, the drop-down list contains Food and you
type foo, it will automatically select the Food entry in the drop-down
list of suggestions.  At this point, the only way to exit the
autocompleter control without 'foo' in the text box getting changed to
Food is to press Escape or click elsewhere on the page with the
mouse.  This is quite confusing for the average user and means that
the autocomplete functionality can really get in the way.

I've modified the code slightly to change this behaviour so that it no
longer automatically selects the first element in the list of
suggestions.  This way, if you type something into the control and
then press tab to move on or enter to submit the form, what you typed
is preserved.  If you want to select one of the sugestions, you have
to use the arrow keys or the mouse.  This, incidentally, is how most
autocomplete drop-downs that I've seen work - including Google suggest
and Firefox.

I was wondering where to go now.  I did intend to file a bug, but
don't seem to have appropriate permissions to do so.  I've also got a
working patch, but suspect the change may need to be implemented with
appropriate options to keep the now default behaviour.

Cheers,

Max
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to