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 keyboard shortcut priority

Steven Tey55634c3f51c4
diff --git a/apps/web/ui/folders/folder-actions.tsx b/apps/web/ui/folders/folder-actions.tsx
index d38c602855..30041bf8a5 100644
--- a/apps/web/ui/folders/folder-actions.tsx
+++ b/apps/web/ui/folders/folder-actions.tsx
@@ -73,7 +73,7 @@ export const FolderActions = ({
const unsortedLinks = folder.id === "unsorted";
useKeyboardShortcut(
- ["r", "m", "i", "x", "a", "s", "d"],
+ ["r", "e", "i", "x", "a", "s", "d"],
(e) => {
setOpenPopover(false);
switch (e.key) {
@@ -90,7 +90,7 @@ export const FolderActions = ({
if (!unsortedLinks && canUpdateFolder)
setShowShareDashboardModal(true);
break;
- case "m":
+ case "e":
if (!unsortedLinks) {
setShowFolderPermissionsPanel(true);
}
@@ -119,6 +119,7 @@ export const FolderActions = ({
},
{
enabled: openPopover,
+ priority: 1,
},
);
@@ -142,7 +143,7 @@ export const FolderActions = ({
setShowFolderPermissionsPanel(true);
}}
icon={<PenWriting className="h-4 w-4" />}
- shortcut="M"
+ shortcut="E"
className="h-9 px-2 font-medium"
/>
<Button