www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.View.getFocusedElement(containingElement)

Mojo.View.getFocusedElement(containingElement)

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

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)