From c9c004a3fbe4caf32017150c4c63d4ee7b231ad3 Mon Sep 17 00:00:00 2001 From: Josiah <139285660+Jojobinx17@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:57:07 -0700 Subject: [PATCH] feature: auto-focus main input field on desktop --- src/front/cobalt.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 0c89dec2..5e8e4fb7 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -666,6 +666,10 @@ window.onload = () => { } window.history.replaceState(null, '', window.location.pathname); + if (!isMobile) { + eid("url-input-area").focus(); + } + // fix for animations not working in Safari if (isIOS) { document.addEventListener('touchstart', () => {}, true);