Autocomplete, multiple values and TAB key problem
I'm trying to get the autocomplete widget to handle multiple values .
I've seen the samples on the demo site as well as the blog entry here: http://www.codenition.com/jquery-ui-multicomplete-widget-based-on-autocomplete plus I'm sure a few other's I'm not remembering off the top of my head.
All of the samples fall short in how they handle the tab key imo. As I see it, the tab key should autocomplete when a suggestion is selected but move on to the next input when one is not. In addition, when it moves on the the next input it should trim off a trailing separator (in the case of the examples ', ').
I've tried to make this happen by handling the tab key in the keydown event of autocomplete's input element - but this hasn't worked out well.
Anyone have any idea how to extend the autocomplete to handle the above spec? It doesn't seem like it has enough hooks to cleanly enable this. After taking a look at the source it appears that the tab key is being handled at a low level in the widget.