The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
QOL shortcut case
Marcus Farrell16f756dc2776
diff --git a/packages/ui/src/hooks/use-keyboard-shortcut.tsx b/packages/ui/src/hooks/use-keyboard-shortcut.tsxindex ce7477bce7..8b091c229a 100644--- a/packages/ui/src/hooks/use-keyboard-shortcut.tsx+++ b/packages/ui/src/hooks/use-keyboard-shortcut.tsx@@ -81,7 +81,8 @@ export function useKeyboardShortcut(...(e.metaKey ? ["meta"] : []),...(e.ctrlKey ? ["ctrl"] : []),...(e.altKey ? ["alt"] : []),- e.key,+ // Normalize single characters so shortcuts work with Caps Lock on+ e.key.length === 1 ? e.key.toLowerCase() : e.key,].join("+");// Ignore shortcut if it doesn't match this listener