Version: 2021.1
LanguageEnglish
  • C#

TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static bool closeKeyboardOnOutsideTap;

Description

Enable legacy on-screen keyboard hiding on Android.

If set to true, the closeKeyboardOnOutsideTap property closes the on-screen keyboard if the user taps away from the keyboard. If set to false, this property keeps the on-screen keyboard on screen, even if the user taps away from it. This means that the user can interact with Unity whilst the keyboard remains on screen.

The default value is true.