Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix "a" keyboard shortcut priorities

Tim Wilsonb63d152e3e8a
diff --git a/apps/web/ui/links/link-controls.tsx b/apps/web/ui/links/link-controls.tsx
index 2b8b7d07fb..09a95826a7 100644
--- a/apps/web/ui/links/link-controls.tsx
+++ b/apps/web/ui/links/link-controls.tsx
@@ -162,6 +162,7 @@ export function LinkControls({ link }: { link: ResponseLink }) {
},
{
enabled: openPopover || (hovered && openMenuLinkId === null),
+ priority: 1, // Take priority over display options
},
);
diff --git a/apps/web/ui/links/links-toolbar.tsx b/apps/web/ui/links/links-toolbar.tsx
index 95854cab8e..47adcc25f4 100644
--- a/apps/web/ui/links/links-toolbar.tsx
+++ b/apps/web/ui/links/links-toolbar.tsx
@@ -175,7 +175,7 @@ export const LinksToolbar = memo(
},
{
enabled: selectedLinkIds.length > 0 && openMenuLinkId === null,
- priority: 1, // Take priority over individual link controls
+ priority: 2, // Take priority over individual link controls
modal: false,
},
);