Hi,

I'm wondering that what is the purpose of the field.focus() line
inside the Autocompleter.Selection function in the autocomplete
plugin.
$.Autocompleter.Selection = function(field, start, end) {
        /*...*/
        field.focus();
};

Because with that line the autocomplete has some very bizarre (imo)
idea of locking the focus to the field that fired the autocomplete
even if the user has decided not to select any of the items and has
instead clicked on another field.

You can see this in: http://jquery.bassistance.de/autocomplete/demo/
if you click on a field, start typing and then proceed to click on
another field instead of choosing anything from the autosuggestions.

So I'm wondering if there's a reason for that code and if so, what is
it? And more importantly, is it relevant if I *only* develop for FF.

Reply via email to