<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEResponderEditActions/addShortcut(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BEResponderEditActions(im)addShortcut:"
  },
  "title" : "addShortcut(_:)"
}
-->

# addShortcut(_:)

Adds a text-replacement shortcut to the edit dictionary.

```
optional func addShortcut(_ sender: Any?)
```

## Parameters

`sender`

The object calling this method.

## Discussion

To present the standard system UI for adding text-replacement shortcuts, call [`addShortcut(forText:from:)`](/documentation/BrowserEngineKit/BETextInteraction/addShortcut(forText:from:)) in your implementation of this method.

---

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)