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(root:DisplayObject, ?customFactory:DisplayObject ‑> IFocusManager):IFocusManager
Adds a focus manager root.
Available since
1.0.0
.statichasRoot(root:DisplayObject):Bool
Indicates if a specific display object is a focus manager root.
Available since
1.0.0
.staticremoveRoot(root:DisplayObject):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
.