FocusManager
public class
feathers.core.FocusManager
Description
Manages touch and keyboard focus.
Note: When enabling focus management, you should always use
TextFieldTextEditor
as the text editor for TextInput
components. StageTextTextEditor
is not compatible with the
focus manager.
API overview
Constructor
FocusManager
(
topLevelContainer: DisplayObjectContainer
= null
,
enableImmediately: Boolean
= true
)
Constructor.
Attributes
Public attributes
defaultIsEnabled: Boolean |
static
Determines if the default focus manager is enabled |
focus: IFocusDisplayObject |
The object that currently has focus |
isEnabled: Boolean |
Determines if this focus manager is enabled |
Functions
Public functions
popFocusManager (): Void |
static Removes the top-most focus manager from the stack and returns exclusive focus to the manager below it |
pushFocusManager ( manager: IFocusManager = null ): IFocusManager |
static Adds a focus manager to the stack, and gives it exclusive focus |
removeFocusManager ( manager: IFocusManager ): Void |
static Removes the specified focus manager from the stack |
Constructor
FocusManager ( topLevelContainer: DisplayObjectContainer = null , enableImmediately: Boolean = true )
Constructor.
Attributes
isEnabled: Boolean
Determines if this focus manager is enabled. A focus manager may be disabled when another focus manager has control, such as when a modal pop-up is displayed.
Functions
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
String | fully qualified type name of the Object. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
Type | The Type that describes the object. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
String | type name of the Object. |
popFocusManager (): Void
static
Removes the top-most focus manager from the stack and returns exclusive focus to the manager below it.
pushFocusManager ( manager: IFocusManager = null ): IFocusManager
static
Adds a focus manager to the stack, and gives it exclusive focus.
Parameters
manager: IFocusManager = null |
removeFocusManager ( manager: IFocusManager ): Void
static
Removes the specified focus manager from the stack. If it was the top-most focus manager, the new top-most focus manager is enabled.
Parameters
manager: IFocusManager |