MCPcopy
hub / github.com/csev/py4e / resetInput

Function resetInput

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1070–1076  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

1068 return true;
1069 }
1070 function resetInput(user) {
1071 if (!posEq(sel.from, sel.to)) {
1072 prevInput = "";
1073 input.value = getSelection();
1074 selectInput(input);
1075 } else if (user) prevInput = input.value = "";
1076 }
1077
1078 function focusInput() {
1079 if (options.readOnly != "nocursor") input.focus();

Callers 4

CodeMirrorFunction · 0.70
onFocusFunction · 0.70
rehideFunction · 0.70
endOperationFunction · 0.70

Calls 3

getSelectionFunction · 0.85
posEqFunction · 0.70
selectInputFunction · 0.70

Tested by

no test coverage detected