Set focus on the previous layer
Newly focused layer object
Search forward for a layer that can be focused, and if a layer is found, focus on that layer.