AlertDialog.setDefaultResponse

void setDefaultResponse(string response = null)

Sets the ID of the default response of self.

If set, pressing <kbd>Enter</kbd> will activate the corresponding button.

If set to NULL or to a non-existent response ID, pressing <kbd>Enter</kbd> will do nothing.

Parameters

responsethe default response ID