How can I fire the Tab keypress when the Enter key is pressed?
<p>This is what I have and it works fine.
But I want to return the tab key instead of just nothing happening.</p>

<pre><code>$(document).on("keypress", ":input:not(textarea):not([type=submit])", function(event) {
    if (event.keyCode == 13) {
        event.preventDefault();
    }
});
</code></pre>

<p>What I want is:</p>

<pre><code>if (event.keyCode == 13) {
    event.preventDefault();
    return event.keyCode = 9; &lt;&lt;= or something similar and simple
}
</code></pre>

<p>This seems like a duplicate but I don't see anything to substitute enter for tab code... Tab key already knows to skip hidden and use tab orders.</p>