From 4426d96610e5df5c41d11d8d07c09ff8c4d5cc19 Mon Sep 17 00:00:00 2001 From: dotta Date: Thu, 26 Mar 2026 17:06:14 -0500 Subject: [PATCH] Restrict inbox keyboard shortcuts to mine tab only All keyboard shortcuts (j/k/a/y/U/r/Enter) now only fire when the user is on the "Mine" tab. Previously j/k and other navigation shortcuts were active on all tabs. Co-Authored-By: Paperclip --- ui/src/pages/Inbox.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/pages/Inbox.tsx b/ui/src/pages/Inbox.tsx index ebee2bc6..389c79e0 100644 --- a/ui/src/pages/Inbox.tsx +++ b/ui/src/pages/Inbox.tsx @@ -950,11 +950,12 @@ export function Inbox() { return; } + // Keyboard shortcuts are only active on the "mine" tab + if (tab !== "mine") return; + const itemCount = workItemsToRender.length; if (itemCount === 0) return; - const isMineTab = tab === "mine"; - switch (e.key) { case "j": { e.preventDefault(); @@ -968,7 +969,7 @@ export function Inbox() { } case "a": case "y": { - if (!isMineTab || selectedIndex < 0 || selectedIndex >= itemCount) return; + if (selectedIndex < 0 || selectedIndex >= itemCount) return; e.preventDefault(); const item = workItemsToRender[selectedIndex]; const key = getWorkItemKey(item);