From the inside this is a non-issue
Yeah, well, Grandma wasn’t on the inside...
Gramma is a moron for putting a kid in a car then closing all the doors. That is parenting 101 you close the door next to the kid last right before you get into your open drivers side door. This way it’s impossible to ever accidentally lock your kid inside a car which happens a lot when people leave there keys on the seat and either press the lock button on the door or some cars antilock after 60 to 90 seconds with all doors closed. When you go to carseat DOT class they teach this very rule to every parent never EVER close the doors to the car until you are physically sitting in the drivers seat and reach out to close the door from the inside after your child is secure in their car seat.
My Volvo won’t let your lock the doors if the fob is inside the car anywhere, but it does autolock at 60 seconds all doors closed if the fob is not inside. My KIA did the same thing autolock at 90 seconds all doors closed it didn’t have the fob sensor so that car absolutely would lock you out if your keys were on the seat and you closed your driver door for more than 90 seconds. The outcome is the same broken window.