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

Function setInput

src/handlers/quickTools.js:323–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321}
322
323function setInput() {
324 const terminalInput = getActiveTerminalInput();
325 if (terminalInput) {
326 input = terminalInput;
327 return;
328 }
329
330 const { activeElement } = document;
331 if (
332 !activeElement ||
333 activeElement === quickTools.$input ||
334 activeElement === document.body
335 )
336 return;
337 input = activeElement;
338}
339
340function toggleSearch() {
341 const $footer = quickTools.$footer;

Callers 1

actionsFunction · 0.85

Calls 1

getActiveTerminalInputFunction · 0.85

Tested by

no test coverage detected