From 13d959799ad28182d24064edd2ae9c34d118466e Mon Sep 17 00:00:00 2001 From: nguyen Date: Fri, 23 May 2025 22:12:06 +0700 Subject: [PATCH] fix: prevent button stealing focus from url input (#212) --- src-web/components/UrlBar.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-web/components/UrlBar.tsx b/src-web/components/UrlBar.tsx index 2916cbfd..b65cce08 100644 --- a/src-web/components/UrlBar.tsx +++ b/src-web/components/UrlBar.tsx @@ -113,6 +113,10 @@ export const UrlBar = memo(function UrlBar({ iconColor="secondary" icon={isLoading ? 'x' : submitIcon} hotkeyAction="http_request.send" + onMouseDown={(e) => { + // Prevent the button from taking focus + e.preventDefault(); + }} /> )}