---
title: "invalidateTextEntryContext(for:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinputdelegate/invalidatetextentrycontext(for:)"
---

# invalidateTextEntryContext(for:)

Tells the system the text entry context has changed and that text entry UI’s need to be refreshed.

## Declaration

```swift
func invalidateTextEntryContext(for textInput: any BETextInput)
```

## Discussion

Discussion This is a costly operation and should only used with intention.  For example, when switching focus between different elements.
