MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / prepareCopy

Function prepareCopy

static/js/codemirror/codemirror.js:1483–1490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1481 });
1482
1483 function prepareCopy() {
1484 if (d.inaccurateSelection) {
1485 d.prevInput = "";
1486 d.inaccurateSelection = false;
1487 d.input.value = cm.getSelection();
1488 selectInput(d.input);
1489 }
1490 }
1491 on(d.input, "cut", prepareCopy);
1492 on(d.input, "copy", prepareCopy);
1493

Callers

nothing calls this directly

Calls 1

selectInputFunction · 0.85

Tested by

no test coverage detected