Updated a method for submit form to press return key