MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / onPaste

Function onPaste

ServerEditorWeb/ace/ace.js:2133–2146  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2131 };
2132
2133 var onPaste = function(e) {
2134 var data = handleClipboardData(e);
2135 if (typeof data == "string") {
2136 if (data)
2137 host.onPaste(data);
2138 if (useragent.isIE)
2139 setTimeout(resetSelection);
2140 event.preventDefault(e);
2141 }
2142 else {
2143 text.value = "";
2144 pasted = true;
2145 }
2146 };
2147
2148 event.addCommandKeyListener(text, host.onCommandKey.bind(host));
2149

Callers 1

TextInputFunction · 0.85

Calls 1

handleClipboardDataFunction · 0.85

Tested by

no test coverage detected