Prevent modal closes when enter is typed.