catch submit-on-enter