blockly > FocusManager > getFocusedTree

Metodo FocusManager.getFocusedTree()

Restituisce l'oggetto IFocusableTree corrente che ha il focus o null se non ce ne sono al momento.

Tieni inoltre presente che se al momento è stato acquisito il focus temporaneo (ad esempio utilizzando takeEphemeralFocus), l'albero restituito qui potrebbe non avere attualmente il focus DOM.

Firma:

getFocusedTree(): IFocusableTree | null;

Restituisce:

IFocusableTree | null