---
title: BEKeyEntryContext
framework: browserenginekit
role: symbol
role_heading: Class
path: browserenginekit/bekeyentrycontext
---

# BEKeyEntryContext

A class that describes a key event and the text document with which the event is associated.

## Declaration

```swift
class BEKeyEntryContext
```

## Overview

Overview If the key entry occurs within the context of a composed input mode, for example Chinese, Japanese, or Korean input, set shouldEvaluateForInputSystemHandling to true. The text system uses the document’s marked text to combine multiple key events into a single input character.

## Topics

### Creating a key entry context

- [init(keyEntry:)](browserenginekit/bekeyentrycontext/init(keyentry:).md)

### Getting the information about the key event

- [keyEntry](browserenginekit/bekeyentrycontext/keyentry.md)
- [shouldInsertCharacter](browserenginekit/bekeyentrycontext/shouldinsertcharacter.md)
- [shouldEvaluateForInputSystemHandling](browserenginekit/bekeyentrycontext/shouldevaluateforinputsystemhandling.md)

### Getting information about the text document

- [isDocumentEditable](browserenginekit/bekeyentrycontext/isdocumenteditable.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Keyboard input

- [BEKeyEntry](browserenginekit/bekeyentry.md)
- [BEKeyModifierFlags](browserenginekit/bekeymodifierflags.md)
