Iterate through the list to find the focused object

I don’t know if this is what you want