MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / selectInput

Function selectInput

static/js/codemirror/codemirror.js:4945–4950  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

4943 function lst(arr) { return arr[arr.length-1]; }
4944
4945 function selectInput(node) {
4946 if (ios) { // Mobile Safari apparently has a bug where select() is broken.
4947 node.selectionStart = 0;
4948 node.selectionEnd = node.value.length;
4949 } else node.select();
4950 }
4951
4952 function indexOf(collection, elt) {
4953 if (collection.indexOf) return collection.indexOf(elt);

Callers 2

resetInputFunction · 0.85
prepareCopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected