()
| 321 | } |
| 322 | |
| 323 | function 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 | |
| 340 | function toggleSearch() { |
| 341 | const $footer = quickTools.$footer; |
no test coverage detected