This version of Unity is unsupported.

InputField.wasCanceled

public bool wasCanceled;

Description

If the InputField was canceled and will revert back to the original text upon DeactivateInputField.