Layer.onBeforeFocus

Function/Meaning

Immediately before receiving focus

Type
LayerclassEvent
Syntax
onBeforeFocus(layer, blurred, direction)
Arguments
layer

A layer object that receives focus.
Normally this is passed, but you can have the focus passed to that layer by specifying a different layer object when calling the event of the same name in the superclass.

blurred

A layer object that loses focus.

direction

True if the focus is changed by a backward search of the focus, false if it is done by a forward search of the focus.

Return value
None (void)
Explanation

This event occurs just before receiving focus.
When specifying the layer that receives the focus, that layer can be specified in the first argument of the event with the same name in the superclass.