Function Dialog.closeWithCancelAction

calls close with cancel action (if found); returns true if cancel action is found and invoked

bool closeWithCancelAction();