MCPcopy Create free account
hub / github.com/TruthHun/BookStack / selectInput

Function selectInput

static/editor.md/lib/codemirror/lib/codemirror.js:8067–8067  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

8065 function lst(arr) { return arr[arr.length-1]; }
8066
8067 var selectInput = function(node) { node.select(); };
8068 if (ios) // Mobile Safari apparently has a bug where select() is broken.
8069 selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; };
8070 else if (ie) // Suppress mysterious IE10 errors

Callers 3

prepareCopyCutFunction · 0.70
codemirror.jsFile · 0.70
onCopyCutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected