The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add escape key functionality to blur search input
MichalTarasiuk49067435cdc1
diff --git a/apps/web/ui/shared/search-box.tsx b/apps/web/ui/shared/search-box.tsxindex ac9d7603e3..f574dd7768 100644--- a/apps/web/ui/shared/search-box.tsx+++ b/apps/web/ui/shared/search-box.tsx@@ -54,6 +54,8 @@ export const SearchBox = forwardRef() {e.preventDefault();inputRef.current?.focus();+ } else if (e.key === "Escape") {+ inputRef.current?.blur();}}, []);