overwrite Modal.prototype.enforceFocus function