title: jQuery autocomplete; want Return key to behave as Tab
body: <p>The following code behaves different when <strong>tab</strong> and <strong>enter</strong> keys are pressed:</p>
  
  <p>--<strong>tab</strong> replaces the text field's value with the value of the selected item and focus goes to the next input box</p>
  
  <p>--<strong>enter</strong> replaces the text field's value with the value of the selected item but the focus <em>does not</em> go to the next input box</p>
  
  <p>How do I  change the behavior of <strong>enter</strong> so that the focus goes to the next input box?</p>
  
  <pre><code>$('input').autocomplete({
      autoFocus: true,
      source: ["test","some text"],
      delay: 0
  });
  </code></pre>
  
  <p>I have tried to add the following line:</p>
  
  <pre><code>select: function(event, ui) { if (event.keyCode == 13) { trigger({ type : 'keypress', which : 9 }); } }
  </code></pre>
  
  <p>This doesn't work. See <a href="http://jsfiddle.net/YbPVX/4/" rel="nofollow">http://jsfiddle.net/YbPVX/4/</a></p>