/// <summary> /// Moves to next input field, unless at the last input field, then it presses the button if it is interactable /// </summary> /// <param name="clickType"> The enter button ClickType </param> public void TabButtonPressed(ClickType clickType) { if (clickType != ClickType.Down) { return; } SelectableExtensions.MoveToNextSelectable(inputFields); }
/// <summary> /// Moves to the next input field /// </summary> /// <param name="clickType"> The tab button ClickType </param> public void EnterButtonPressed(ClickType clickType) { if (clickType != ClickType.Down) { return; } if (InputFieldUtils.GetActiveInputField() == password2Field.InputFieldBase && nextButton.interactable) { nextButton.Press(); } else { SelectableExtensions.MoveToNextSelectable(inputFields); } }