How can I detect if user is using autocomplete on text field?
<p>I recently moved to using <code>&lt;a&gt;</code> tags as submit buttons for styling purposes.
I have a JS plugin I wrote that handles forms and their validation.</p>

<p>To simulate a normal form, where a user hits enter on a text field to submit, I detect enter and submit form on keyup.</p>

<p>The problem is if the user hits enter in an autocomplete dropdown from Firefox, for instance, it detects and still tries to submit the form.</p>

<p>Any ideas? I might switch to my form handler appending a hidden submit button in the event one is not found for the form....</p>
