Layer.focus
Function/Meaning
Set focus
Type
Method of
Layer class
Syntax
focus(
direction
=
true
)
Arguments
direction
The value passed to the direction argument of the
Layer.onBeforeFocus
and
Layer.onFocus
events.
Return Value
None (void)
Description
Sets the
focus
to the layer. When a layer receives focus, keyboard input becomes possible.