MCPcopy Create free account
hub / github.com/SplootCode/splootcode / exitEdit

Method exitEdit

packages/editor/src/context/selection.ts:554–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552
553 @action
554 exitEdit() {
555 if (this.state === SelectionState.Editing) {
556 this.setSelectionSingleNode(new NodeCursor(this.selectionStart.listBlock, this.selectionStart.index))
557 }
558 if (this.state == SelectionState.Inserting) {
559 this.placeCursorByXYCoordinate(this.lastXCoordinate, this.lastYCoordinate)
560 }
561 }
562
563 @action
564 onEditorBlur() {

Callers 3

deleteSelectedNodeMethod · 0.95
EditBoxClass · 0.80
InsertBoxClass · 0.80

Calls 2

Tested by

no test coverage detected