public void Update() { if (inputField.isFocused && Input.GetKeyDown(KeyCode.Tab)) { Debug.Log("TAB"); Selectable next = inputField.FindSelectableOnDown(); if (next != null) { Debug.Log("next"); next.Select(); } } }
private void OnInputEndEdit(InputField input, string text) { if (Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter)) { var next = input.FindSelectableOnRight(); if (next == null || !next.IsInteractable()) { next = input.FindSelectableOnDown(); } if (next != null && next.IsInteractable()) { next.Select(); } } }