Years ago I had an 93 EB S Pack, the first with Fords 'Smartlock'. Put a new battery in it one day, had the battery disconnected for a good 4 hours while doing other stuff. Reconnected the battery and instantly the doors locked with the keys in the ignition.
To this day any car with remote or central locking, if I leave the keys in the ignition, I put the window down a frag.