This version of Unity is unsupported.

SearchField.HasFocus

public bool HasFocus();

Description

This function returns true if the search field has keyboard focus.