Returns the currently focused element in containingElement, or null if there is no element that currently has focus.
Parameter | Type | Description |
---|---|---|
containingElement | Element | Element to search for a currently focused element. |
Example usage:
//use this to blur the currently focused item focusedElement = Mojo.View.getFocusedElement(this.controller.scene.sceneElement); if (focusedElement) { focusedElement.blur(); }
0 Comments