Manages focus of UI components.

Events:

openfl.events.Event.CLEAR

Dispatched when the focus manager is disposed.

Available since

1.0.0

.

See also:

Variables

enabled:Bool

Specifies if this focus manager is enabled or disabled.

Available since

1.0.0

.

focus:IFocusObject

The object that currently has focus.

Available since

1.0.0

.

read onlyfocusPane:DisplayObjectContainer

A place for UI components to draw their focus indicators, if requested.

Available since

1.0.0

.

read onlyroot:DisplayObject

The root of the focus manager.

Available since

1.0.0

.

read onlyshowFocusIndicator:Bool

Indicates if UI components should draw their focus indicators.

Available since

1.0.0

.

Methods

dispose():Void

Disposes this focus manager. A focus manager should never be used again after calling dispose(). Must dispatch Event.CLEAR when called.

Available since

1.0.0

.

@:value({ backward : false })findNextFocus(backward:Bool = false):IFocusObject

Finds the next focus in the specified direction (forward or backward).

Available since

1.0.0

.