MCPcopy
hub / github.com/witheve/Eve / selectInput

Function selectInput

src/codemirror.js:8335–8335  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

8333 function lst(arr) { return arr[arr.length-1]; }
8334
8335 var selectInput = function(node) { node.select(); };
8336 if (ios) // Mobile Safari apparently has a bug where select() is broken.
8337 selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; };
8338 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