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

Function resetSelection

ServerEditorWeb/ace/ace.js:1946–1963  ·  view source on GitHub ↗
(isEmpty)

Source from the content-addressed store, hash-verified

1944 });
1945
1946 function resetSelection(isEmpty) {
1947 if (inComposition)
1948 return;
1949 inComposition = true;
1950
1951 if (inputHandler) {
1952 selectionStart = 0;
1953 selectionEnd = isEmpty ? 0 : text.value.length - 1;
1954 } else {
1955 var selectionStart = isEmpty ? 2 : 1;
1956 var selectionEnd = 2;
1957 }
1958 try {
1959 text.setSelectionRange(selectionStart, selectionEnd);
1960 } catch(e){}
1961
1962 inComposition = false;
1963 }
1964
1965 function resetValue() {
1966 if (inComposition)

Callers 4

TextInputFunction · 0.85
onSelectFunction · 0.85
sendTextFunction · 0.85
doCopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected