Layer.onFocus

Function/Meaning
Gained focus
Type
Layer class event
Syntax
onFocus(focused, direction)
Arguments
focused The layer object that lost focus.
direction True if the focus was changed by a backward search, false if by a forward search.
Description
Called when the layer gains focus.