Component.grabFocus

bool grabFocus()

Grabs focus for this component.

Returns

true if successful, false otherwise.