Layer.onBeforeFocus

Function/Meaning
Just before receiving focus
Type
Event of the Layer class
Syntax
onBeforeFocus(layer, blurred, direction)
Arguments
layer The layer object that will receive focus.
Normally "this" is passed, but by specifying a different layer object when calling the superclass event of the same name, you can pass focus to that layer.
blurred The layer object that is losing focus.
direction True if the focus is changed by a backward focus search, false if by a forward focus search.
Description
This event occurs just before receiving focus.
To specify the layer that receives focus, you can specify that layer in the first argument of the superclass event of the same name.