MCPcopy
hub / github.com/nwutils/nw-sample-apps / resetInput

Function resetInput

mini-code-edit/cm/lib/codemirror.js:870–876  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

868 return true;
869 }
870 function resetInput(user) {
871 if (!posEq(sel.from, sel.to)) {
872 prevInput = "";
873 input.value = getSelection();
874 selectInput(input);
875 } else if (user) prevInput = input.value = "";
876 }
877
878 function focusInput() {
879 if (options.readOnly != "nocursor") input.focus();

Callers 4

CodeMirrorFunction · 0.85
onFocusFunction · 0.85
rehideFunction · 0.85
endOperationFunction · 0.85

Calls 3

posEqFunction · 0.85
getSelectionFunction · 0.85
selectInputFunction · 0.85

Tested by

no test coverage detected