MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onfocus

Function onfocus

src/components/inputhints/index.js:153–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 function onfocus() {
154 if (preventUpdate) return;
155
156 $input.addEventListener("keypress", handleKeypress);
157 $input.addEventListener("keydown", handleKeydown);
158 $input.addEventListener("blur", onblur);
159 $input.addEventListener("input", oninput);
160 window.addEventListener("resize", position);
161 ulAddEventListeners();
162 app.append($ul);
163 position();
164 }
165
166 /**
167 * Event listener for blur

Callers

nothing calls this directly

Calls 3

ulAddEventListenersFunction · 0.85
positionFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected