MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / updateSelection

Function updateSelection

lib/web/CodeMirror/src/display/selection.js:9–11  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

7import { onBlur } from "./focus.js"
8
9export function updateSelection(cm) {
10 cm.display.input.showSelection(cm.display.input.prepareSelection())
11}
12
13export function prepareSelection(cm, primary = true) {
14 let doc = cm.doc, result = {}

Callers 2

postUpdateDisplayFunction · 0.90
updateDisplaySimpleFunction · 0.90

Calls 2

showSelectionMethod · 0.45
prepareSelectionMethod · 0.45

Tested by

no test coverage detected