make binding ESC key and click outside of modal optional before we solve it backwards-compatible