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

# shouldDeferEventHandlingToSystem(for:context:)

Notify the text system that your web browser’s custom text view isn’t handling key events.

```
func shouldDeferEventHandlingToSystem(for textInput: any BETextInput, context keyEventContext: BEKeyEntryContext) -> Bool
```

## Parameters

`textInput`

The view for which the system needs to take over event handling.

`keyEventContext`

Information about the key event and the document it targets.

## Return Value

`true` if the system handles the key event; `false` otherwise.

## Discussion

Call this method on your [`asyncInputDelegate`](/documentation/BrowserEngineKit/BETextInput/asyncInputDelegate) when your [`BETextInput`](/documentation/BrowserEngineKit/BETextInput) view doesn’t handle a key event, and you pass `false` to the `completionHandler` for [`handleKeyEntry(_:completionHandler:)`](/documentation/BrowserEngineKit/BETextInput/handleKeyEntry(_:completionHandler:)).

---

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)