public bool wasCanceled ;

Description

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