title: Submitting form by hitting ENTER event in primefaces p:autoComplete
body: <p>Below is my code:</p>
  
  <pre><code>&lt;h:form&gt;   
    &lt;p:autoComplete id="autoCompleteID" value="#{myBean.item}"  
                         completeMethod="#{myBean.completeMethod}"    
    &lt;/p:autoComplete&gt;
    &lt;h:commandButton action="#{myBean.searchRelatedItems}"/&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>Here my scenario is like standard Google search, I can see related Items in suggestion and also redirect another page based on text typed in p:autoComplete text field. Its works fine by click on Button, but I also want to achieve by hitting ENTER in p:autoComplete text field.</p>