# closeKeyboardOnOutsideTap

> Enable legacy on-screen keyboard hiding on Android.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Deprecated.** TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap is obsolete. Use TouchScreenKeyboard.Android.consumesOutsideTouches instead
>
> **Upgrade to** [TouchScreenKeyboard.Android.consumesOutsideTouches](/engine/6000.6/script-reference/unityengine/touchscreenkeyboard/android/consumesoutsidetouches.md)

```csharp
public static bool closeKeyboardOnOutsideTap { get; set; }
```

### Remarks

When `true`, Unity closes the on-screen keyboard if you tap outside the visible keyboard area. When `false`, Unity keeps the on-screen keyboard open if you tap outside the visible keyboard area. This means that you can interact with Unity while the keyboard remains on-screen.

The default value is `false`.
