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

Function extendSelection

lib/web/CodeMirror/src/model/selection_updates.js:38–41  ·  view source on GitHub ↗
(doc, head, other, options, extend)

Source from the content-addressed store, hash-verified

36
37// Extend the primary selection range, discard the rest.
38export function extendSelection(doc, head, other, options, extend) {
39 if (extend == null) extend = doc.cm && (doc.cm.display.shift || doc.extend)
40 setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options)
41}
42
43// Extend all selections (pos is an array of selections with length
44// equal the number of selections)

Callers 4

Doc.jsFile · 0.90
onMouseDownFunction · 0.90
leftButtonStartDragFunction · 0.90
registerEventHandlersFunction · 0.90

Calls 3

primaryMethod · 0.80
setSelectionFunction · 0.70
extendRangeFunction · 0.70

Tested by

no test coverage detected