Fix form submit callback for enter key handler