Submit tag-based form when hitting enter
<p>I have a tag-based search form (just like the tag-based text boxes you see on Facebook or S/O where you enter a word and press the corresponding delimiter key on the keyboard)</p>

<p>On my website, you type a word in the text field, and press enter to 'confirm' or 'accept' that keyword, which enables you to enter another.</p>

<p>The problem with this is, that even though you may have finished entering your search query, pressing enter does not submit the form (obviously), because e.preventDefault() has been enabled so i can use enter button to accept/confirm each tag.</p>

<p>What I want to do is, instead of (albeit, slightly) inconveciencing my users, is to submit the form when they press enter if they have not entered any (or any new) tags.</p>

<p>I'll try to explain it more clearly with this image:
<img src="http://i.stack.imgur.com/DsL0m.png" alt="enter image description here"></p>

<p>Would this at all be possible?</p>
