blockly > FocusManager > getFocusedTree

FocusManager.getFocusedTree() メソッド

フォーカスが設定されている現在の IFocusableTree を返します。現在フォーカスが設定されていない場合は null を返します。

また、エフェメラル フォーカスが現在キャプチャされている場合(takeEphemeralFocus を使用している場合など)、ここで返されるツリーに DOM フォーカスが設定されていない可能性があります。

署名:

getFocusedTree(): IFocusableTree | null;

戻り値:

IFocusableTree | null