allow submitting forms on Enter keypress

If an autocomplete field was in a form, it used to be impossible to submit the form's data by pressing Enter on keyboard (even after user was done with autocompleting and/or entered something new).