Skip to content

BlockSuite API Documentation / @blocksuite/inline / EventService

Class: EventService<TextAttributes>

Type parameters

TextAttributes extends BaseTextAttributes

Constructors

new EventService(editor)

new EventService<TextAttributes>(editor): EventService<TextAttributes>

Parameters

editor: InlineEditor<TextAttributes>

Returns

EventService<TextAttributes>

Source

packages/framework/inline/src/services/event.ts:22

Properties

_compositionInlineRange

private _compositionInlineRange: null | InlineRange = null

Source

packages/framework/inline/src/services/event.ts:154


_isComposing

private _isComposing: boolean = false

Source

packages/framework/inline/src/services/event.ts:14


_previousAnchor

private _previousAnchor: null | NativePoint = null

Source

packages/framework/inline/src/services/event.ts:19


_previousFocus

private _previousFocus: null | NativePoint = null

Source

packages/framework/inline/src/services/event.ts:20


editor

readonly editor: InlineEditor<TextAttributes>

Source

packages/framework/inline/src/services/event.ts:22

Accessors

inlineRangeProvider

get inlineRangeProvider(): null | InlineRangeProvider

Returns

null | InlineRangeProvider

Source

packages/framework/inline/src/services/event.ts:24


isComposing

get isComposing(): boolean

Returns

boolean

Source

packages/framework/inline/src/services/event.ts:15

Methods

_isRangeCompletelyInRoot()

private _isRangeCompletelyInRoot(range): boolean

Parameters

range: Range

Returns

boolean

Source

packages/framework/inline/src/services/event.ts:70


_onBeforeInput()

private _onBeforeInput(event): void

Parameters

event: InputEvent

Returns

void

Source

packages/framework/inline/src/services/event.ts:231


_onClick()

private _onClick(event): void

Parameters

event: MouseEvent

Returns

void

Source

packages/framework/inline/src/services/event.ts:357


_onCompositionEnd()

private _onCompositionEnd(event): Promise<void>

Parameters

event: CompositionEvent

Returns

Promise<void>

Source

packages/framework/inline/src/services/event.ts:187


_onCompositionStart()

private _onCompositionStart(): void

Returns

void

Source

packages/framework/inline/src/services/event.ts:155


_onCompositionUpdate()

private _onCompositionUpdate(): void

Returns

void

Source

packages/framework/inline/src/services/event.ts:173


_onKeyDown()

private _onKeyDown(event): void

Parameters

event: KeyboardEvent

Returns

void

Source

packages/framework/inline/src/services/event.ts:298


_onSelectionChange()

private _onSelectionChange(): void

Returns

void

Source

packages/framework/inline/src/services/event.ts:91


mount()

mount(): void

Returns

void

Source

packages/framework/inline/src/services/event.ts:28