<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAccessibilityProtocol/accessibilityPerformConfirm()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAccessibility(im)accessibilityPerformConfirm"
  },
  "title" : "accessibilityPerformConfirm()"
}
-->

# accessibilityPerformConfirm()

Simulates pressing Return in the accessibility element.

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

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the action was successfully triggered; otherwise, <doc://com.apple.documentation/documentation/Swift/false>. This method does not indicate the success or failure of the action, just the fact that the action was successfully triggered.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)