This version of Unity is unsupported.

TreeView.HasFocus

Declaration

public bool HasFocus();

Description

Returns true if the TreeView and its EditorWindow have keyboard focus.