Ejemplo n.º 1
0
        public void OnPointerDown(PointerEventData eventData)
        {
            inputField = GetComponent <TMP_InputField>();

            keyboard.Close();
            keyboard.PresentKeyboard();

            keyboard.OnClosed        += DisableKeyboard;
            keyboard.OnTextSubmitted += DisableKeyboard;
            keyboard.OnTextUpdated   += UpdateText;
        }
        private void DisableKeyboard(object sender, EventArgs e)
        {
            keyboard.OnTextUpdated   -= UpdateText;
            keyboard.OnClosed        -= DisableKeyboard;
            keyboard.OnTextSubmitted -= DisableKeyboard;

            keyboard.Close();
        }
Ejemplo n.º 3
0
 private void DisableKeyboard(object sender, EventArgs e)
 {
     //Remove events and close keyboard.
     keyboard.OnTextUpdated   -= UpdateText;
     keyboard.OnClosed        -= DisableKeyboard;
     keyboard.OnTextSubmitted -= DisableKeyboard;
     keyboard.OnTextSubmitted -= enterClicked;
     keyboard.Close();
 }