MCPcopy
hub / github.com/DHTMLX/gantt / extendSelection

Function extendSelection

samples/common/codehighlight/codemirror.js:5050–5053  ·  view source on GitHub ↗
(doc, head, other, options, extend)

Source from the content-addressed store, hash-verified

5048
5049 // Extend the primary selection range, discard the rest.
5050 function extendSelection(doc, head, other, options, extend) {
5051 if (extend == null) { extend = doc.cm && (doc.cm.display.shift || doc.extend); }
5052 setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options);
5053 }
5054
5055 // Extend all selections (pos is an array of selections with length
5056 // equal the number of selections)

Callers 4

codemirror.jsFile · 0.85
onMouseDownFunction · 0.85
leftButtonStartDragFunction · 0.85
registerEventHandlersFunction · 0.85

Calls 2

setSelectionFunction · 0.85
extendRangeFunction · 0.85

Tested by

no test coverage detected