---
title: "shouldDeferEventHandlingToSystem(for:context:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinputdelegate/shoulddefereventhandlingtosystem(for:context:)"
---

# shouldDeferEventHandlingToSystem(for:context:)

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

## Declaration

```swift
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.

## Mentioned in

Integrating custom browser text views with UIKit

## Return Value

Return Value true if the system handles the key event; false otherwise.

## Discussion

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

## See Also

### Deferring actions to the text system

- [textInput(_:deferReplaceTextActionToSystem:)](browserenginekit/betextinputdelegate/textinput(_:deferreplacetextactiontosystem:).md)
