How to submit form when Enter is pressed in PrimeFaces selectOneMenu?
<p>I'm having a form which contains only selectOneMenu inputs and a submit button. When I press Enter in the selectOneMenu nothing happens. If I have a text input in the form, the form is submitted when I press Enter and focus is in the text input, but is is never submitted if focus is in a selectOneMenu.</p>

<p>You can see the same behavior in the PrimeFaces ShowCase here: <a href="http://www.primefaces.org/showcase/ui/ajax/dropdown.xhtml" rel="nofollow">http://www.primefaces.org/showcase/ui/ajax/dropdown.xhtml</a></p>

<p>Is there a way to make Enter in a selectOneMenu input submit the form? And Enter should only submit the form, if the menu is not shown, as Enter here is used to select a value.</p>

<p>I've tried to catch the keypress using jQuery, but it's never called when pressing Enter - other keypresses are being caught.</p>

<p>I'm using PrimeFaces 5.3.</p>

<p>Thanks!</p>

<p>/Brian</p>