MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / focus

Method focus

lib/web/CodeMirror/src/input/TextareaInput.js:179–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 supportsTouch() { return false }
178
179 focus() {
180 if (this.cm.options.readOnly != "nocursor" && (!mobile || activeElt() != this.textarea)) {
181 try { this.textarea.focus() }
182 catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM
183 }
184 }
185
186 blur() { this.textarea.blur() }
187

Callers 15

changehooks.jsFile · 0.45
updateCompletionsFunction · 0.45
highlightRunAndCloseFunction · 0.45
runModalFunction · 0.45
ensureFocusFunction · 0.45
initScrollbarsFunction · 0.45
restoreSelectionFunction · 0.45
onDropFunction · 0.45
onMouseDownFunction · 0.45
leftButtonStartDragFunction · 0.45
doneFunction · 0.45

Calls 1

activeEltFunction · 0.90

Tested by

no test coverage detected