Make keyboard focus more robust under closed floaters.