Ajax.autocompleter and submission of the form

I have a Ajax.autocompleter text field, which is used for selecting
tags/labels. However, as you can have multiple tags/labels, the user (to
enter apple and fruit as tags) would enter ap, and then use the arrow
to select apple and press enter. But as soon as the user presses enter
form gets submitted with only the one tag of apple.

Is there anyway of turning of the form submission on pressing of the
key, or would I have to turn the text field into a text area, which
care about enters? If I use some javascript to disable form submission,
wouldn’t it interfere with the Ajax.autocompleter?



Just found this posting - I’m running into the exact same problem I want
to solve.
What’s the best way to go about it?