Contents

shouldDeferEventHandlingToSystem(for:context:)

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

Declaration

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

Return Value

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

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