For some reason the below Debug Log doesn't ever fire
if (customInputField.isFocused) {
if (Input.GetKeyDown(KeyCode.Return))
{
Debug.Log("Check");
}
}
It's located within the update method. Removing the check for the return key makes the Debug Log fire repeatedly (when the field is focussed). Could the input field be losing focus when the enter key is pressed, and if so how could I achieve this check?