Manages mouse/touch and keyboard focus.
Available since
1.0.0
.Static variables
staticfocusManagerFactory:DisplayObject ‑> IFocusManager
Returns a new instance of an IFocusManager
implementation. May be used
to replace the default focus manager with a custom implementation.
Available since
1.0.0
.See also:
Static methods
staticaddRoot(stage:Stage):IFocusManager
Returns the IFocusManager
instance associated with the specified
Stage
instance. If a focus manager hasn't been created for this
stage yet, one will be created automatically using
FocusManager.focusManagerFactory
.
Available since
1.0.0
.See also:
staticdispose():Void
Removes all IFocusManager
instances created by calling
FocusManager.forStage()
.
Available since
1.0.0
.statichasRoot(stage:Stage):Bool
Indicates if a specific stage object is a focus manager root.
Available since
1.0.0
.staticremoveRoot(stage:Stage):Void
Removes a focus manager root that was enabled with addRoot()
.
Available since
1.0.0
.staticsetFocus(focusable:IFocusObject):Void
Changes the currently focused object.
Throws ArgumentError
if the object does not have a focus manager.
Available since
1.0.0
.