// Update is called once per frame
    void Update()
    {
        fieldSelected = false;
        foreach (TextField tf in fields)
        {
            if (tf.isSelected)
            {
                fieldSelected = true;
                Debug.Log("a field is selected");
            }
        }

        Debug.Log("vk active: " + keyboardActive + ", fieldSelected: " + fieldSelected);
        if (keyboardActive && !fieldSelected)
        {
            vk.HideOnScreenKeyboard();
            keyboardActive = false;
        }
        else if (!keyboardActive && fieldSelected)
        {
            vk.ShowOnScreenKeyboard();
            keyboardActive = true;
            Debug.Log("mmm");
        }
    }
Example #2
0
 public void CloseKeyboard()
 {
     vk.HideOnScreenKeyboard();
 }