If your ex-wife passes away can she leave our children in the custody of her boyfriend?

i don't think so, Because your the legal father