CanDeactivate function

Learn technical details about the CanDeactivate function.