MCPcopy
hub / github.com/jagenjo/webglstudio.js / selectInput

Function selectInput

editor/js/extra/codemirror/codemirror.js:8308–8308  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

8306 function lst(arr) { return arr[arr.length-1]; }
8307
8308 var selectInput = function(node) { node.select(); };
8309 if (ios) // Mobile Safari apparently has a bug where select() is broken.
8310 selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; };
8311 else if (ie) // Suppress mysterious IE10 errors

Callers 3

prepareCopyCutFunction · 0.85
codemirror.jsFile · 0.85
onCopyCutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected