The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update keyboard shortcuts
Steven Tey9b4c1fe0bf26
diff --git a/apps/web/ui/modals/link-builder/constants.ts b/apps/web/ui/modals/link-builder/constants.tsindex af94c5b84a..c7e8d2364f 100644--- a/apps/web/ui/modals/link-builder/constants.ts+++ b/apps/web/ui/modals/link-builder/constants.ts@@ -21,7 +21,7 @@ export const TOGGLES = [description:"Mask your destination URL so your users only see the short link in the browser address bar.",learnMoreUrl: "https://dub.co/help/article/link-cloaking",- shortcutKey: "h",+ shortcutKey: "k",type: "boolean",},{diff --git a/apps/web/ui/modals/link-builder/link-preview.tsx b/apps/web/ui/modals/link-builder/link-preview.tsxindex 0d6d518735..7c9df3b2c7 100644--- a/apps/web/ui/modals/link-builder/link-preview.tsx+++ b/apps/web/ui/modals/link-builder/link-preview.tsx@@ -77,7 +77,7 @@ export function LinkPreview() {}, [password, debouncedUrl]);const { OGModal, setShowOGModal } = useOGModal();- useKeyboardShortcut("p", () => setShowOGModal(true), {+ useKeyboardShortcut("l", () => setShowOGModal(true), {modal: true,});diff --git a/apps/web/ui/modals/link-builder/og-modal.tsx b/apps/web/ui/modals/link-builder/og-modal.tsxindex c70d39d29d..66a6101a1a 100644--- a/apps/web/ui/modals/link-builder/og-modal.tsx+++ b/apps/web/ui/modals/link-builder/og-modal.tsx@@ -229,14 +229,14 @@ function OGModalInner({content={<div className="px-2 py-1 text-xs text-gray-700">Press{" "}- <strong className="font-medium text-gray-950">P</strong> to+ <strong className="font-medium text-gray-950">L</strong> toopen this quickly</div>}side="right"><kbd className="flex size-6 cursor-default items-center justify-center rounded-md border border-gray-200 font-sans text-xs text-gray-950">- P+ L</kbd></Tooltip></div>diff --git a/apps/web/ui/modals/link-builder/password-modal.tsx b/apps/web/ui/modals/link-builder/password-modal.tsxindex 9a121dc73d..b6c204ada4 100644--- a/apps/web/ui/modals/link-builder/password-modal.tsx+++ b/apps/web/ui/modals/link-builder/password-modal.tsx@@ -108,14 +108,14 @@ function PasswordModalInner({<Tooltipcontent={<div className="px-2 py-1 text-xs text-gray-700">- Press <strong className="font-medium text-gray-950">L</strong>{" "}+ Press <strong className="font-medium text-gray-950">P</strong>{" "}to open this quickly</div>}side="right"><kbd className="flex size-6 cursor-default items-center justify-center rounded-md border border-gray-200 font-sans text-xs text-gray-950">- L+ P</kbd></Tooltip></div>@@ -221,7 +221,7 @@ function PasswordButton({const { watch } = useFormContext<LinkFormData>();const password = watch("password");- useKeyboardShortcut("l", () => setShowPasswordModal(true), {+ useKeyboardShortcut("p", () => setShowPasswordModal(true), {modal: true,});diff --git a/apps/web/ui/modals/link-builder/targeting-modal.tsx b/apps/web/ui/modals/link-builder/targeting-modal.tsxindex bc637f2680..e66cb66d9c 100644--- a/apps/web/ui/modals/link-builder/targeting-modal.tsx+++ b/apps/web/ui/modals/link-builder/targeting-modal.tsx@@ -99,14 +99,14 @@ function TargetingModal({content={<div className="px-2 py-1 text-xs text-gray-700">Press{" "}- <strong className="font-medium text-gray-950">T</strong> to+ <strong className="font-medium text-gray-950">G</strong> toopen this quickly</div>}side="right"><kbd className="flex size-6 cursor-default items-center justify-center gap-1 rounded-md border border-gray-200 font-sans text-xs text-gray-950">- T+ G</kbd></Tooltip></div>@@ -369,7 +369,7 @@ function TargetingButton({const { watch } = useFormContext<LinkFormData>();const [ios, android, geo] = watch(["ios", "android", "geo"]);- useKeyboardShortcut("t", () => setShowTargetingModal(true), {+ useKeyboardShortcut("g", () => setShowTargetingModal(true), {modal: true,});