Modal submitting with Enter

Hooks form submit event -> close modal, call onModalSubmitted().