fix: prevent button stealing focus from url input (#212)

This commit is contained in:
nguyen
2025-05-23 22:12:06 +07:00
committed by GitHub
parent a6b18c23e1
commit 13d959799a

View File

@@ -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();
}}
/>
</div>
)}