Skip to content

BlockSuite API Documentation / @blocksuite/inline / EventService

Class: EventService<TextAttributes> ​

Contents ​

Type parameters ​

• TextAttributes extends BaseTextAttributes

Constructors ​

new EventService(editor) ​

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

Parameters ​

• editor: InlineEditor<TextAttributes>

Returns ​

EventService<TextAttributes>

Source ​

packages/inline/src/services/event.ts:21

Properties ​

_isComposing ​

private _isComposing: boolean = false

Source ​

packages/inline/src/services/event.ts:16


_previousAnchor ​

private _previousAnchor: null | NativePoint = null

Source ​

packages/inline/src/services/event.ts:18


_previousFocus ​

private _previousFocus: null | NativePoint = null

Source ​

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


editor ​

readonly editor: InlineEditor<TextAttributes>

Source ​

packages/inline/src/services/event.ts:21

Accessors ​

inlineRangeProvider ​

get inlineRangeProvider(): null | InlineRangeProvider

Returns ​

null | InlineRangeProvider

Source ​

packages/inline/src/services/event.ts:23

Methods ​

_isRangeCompletelyInRoot() ​

private _isRangeCompletelyInRoot(): boolean

Returns ​

boolean

Source ​

packages/inline/src/services/event.ts:64


_onBeforeInput() ​

private _onBeforeInput(event): void

Parameters ​

• event: InputEvent

Returns ​

void

Source ​

packages/inline/src/services/event.ts:261


_onClick() ​

private _onClick(event): void

Parameters ​

• event: MouseEvent

Returns ​

void

Source ​

packages/inline/src/services/event.ts:367


_onCompositionEnd() ​

private _onCompositionEnd(event): Promise<void>

Parameters ​

• event: CompositionEvent

Returns ​

Promise<void>

Source ​

packages/inline/src/services/event.ts:177


_onCompositionStart() ​

private _onCompositionStart(): void

Returns ​

void

Source ​

packages/inline/src/services/event.ts:166


_onKeyDown() ​

private _onKeyDown(event): void

Parameters ​

• event: KeyboardEvent

Returns ​

void

Source ​

packages/inline/src/services/event.ts:312


_onSelectionChange() ​

private _onSelectionChange(): void

Returns ​

void

Source ​

packages/inline/src/services/event.ts:90


mount() ​

mount(): void

Returns ​

void

Source ​

packages/inline/src/services/event.ts:27


Generated using typedoc-plugin-markdown and TypeDoc