---
title: accessibilityPerformConfirm()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsaccessibilityprotocol/accessibilityperformconfirm()
---

# accessibilityPerformConfirm()

Simulates pressing Return in the accessibility element.

## Declaration

```swift
func accessibilityPerformConfirm() -> Bool
```

## Return Value

Return Value true if the action was successfully triggered; otherwise, false. This method does not indicate the success or failure of the action, just the fact that the action was successfully triggered.

## Discussion

Discussion Use this method on elements that take keyboard input, such as a text field.

## See Also

### Confirming and canceling operations

- [accessibilityPerformCancel()](appkit/nsaccessibilityprotocol/accessibilityperformcancel().md)
