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

Function handlePaste

src/codemirror.js:1151–1159  ·  view source on GitHub ↗
(e, cm)

Source from the content-addressed store, hash-verified

1149 }
1150
1151 function handlePaste(e, cm) {
1152 var pasted = e.clipboardData && e.clipboardData.getData("text/plain");
1153 if (pasted) {
1154 e.preventDefault();
1155 if (!cm.isReadOnly() && !cm.options.disableInput)
1156 runInOp(cm, function() { applyTextInput(cm, pasted, 0, null, "paste"); });
1157 return true;
1158 }
1159 }
1160
1161 function triggerElectric(cm, inserted) {
1162 // When an 'electric' character is inserted, immediately trigger a reindent

Callers 1

codemirror.jsFile · 0.85

Calls 2

runInOpFunction · 0.85
applyTextInputFunction · 0.85

Tested by

no test coverage detected