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

Function cut

lib/web/kill.js:49–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49function cut() {
50 _field.send("clipboard.setClipboard", {value: cm.getSelection()});
51 kill(cm, cm.getCursor("start"), cm.getCursor("end"));
52}
53
54function getNewClipboard(contin) {
55 _field.sendWithReturn("clipboard.getNewClipboard", {}, contin);

Callers 1

instantiate.jsFile · 0.85

Calls 3

getSelectionMethod · 0.80
killFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected