MCPcopy
hub / github.com/witheve/Eve / extendSelection

Method extendSelection

typings/codemirror/codemirror.d.ts:519–519  ·  view source on GitHub ↗

Similar to setSelection , but will, if shift is held or the extending flag is set, move the head of the selection while leaving the anchor at its current place. pos2 is optional , and can be passed to ensure a region (for example a word or paragraph) will end up selected (in

(from: CodeMirror.Position, to?: CodeMirror.Position)

Source from the content-addressed store, hash-verified

517 pos2 is optional , and can be passed to ensure a region (for example a word or paragraph) will end up selected
518 (in addition to whatever lies between that region and the current anchor). */
519 extendSelection(from: CodeMirror.Position, to?: CodeMirror.Position): void;
520
521 /** Sets or clears the 'extending' flag , which acts similar to the shift key,
522 in that it will cause cursor movement and calls to extendSelection to leave the selection anchor in place. */

Callers 3

codemirror.jsFile · 0.80
fFunction · 0.80
toEnclosingExprFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected