Missing "cancel" flag

When the user hits Escape the control is hidden but the "cancel" parameter was not sent as the documentation states. This commit adds the flag.