EnterKeyContext

data class EnterKeyContext(val text: String, val cursorPosition: Int, val paragraphRange: IntRange, val currentAttributes: AttributeContainer)

Provides the context necessary for an EnterKeyStrategy to make a decision.

Constructors

Link copied to clipboard
constructor(text: String, cursorPosition: Int, paragraphRange: IntRange, currentAttributes: AttributeContainer)

Properties

Link copied to clipboard

The block attributes applied to the current paragraph.

Link copied to clipboard

The index where the newline was inserted.

Link copied to clipboard

The range of the paragraph where the cursor is currently located.

Link copied to clipboard

The entire text before the newline is inserted.