From f3ba08b086b25ea3a4a72ff1b2582e2531fd9dee Mon Sep 17 00:00:00 2001 From: Stefano <16362825+0xste@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:00:47 +0000 Subject: [PATCH] fix: on window focus cli focus --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index ac1eb08..5c4478b 100644 --- a/index.html +++ b/index.html @@ -153,6 +153,9 @@ window.onload = () => { cliInput.focus(); }; + window.focus = () => { + cliInput.focus(); + };