# textFieldHasSelection

> True if a text field currently has focused and the text in it is selected.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static bool textFieldHasSelection { get; }
```
