Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(soup): weird toggle with shift+j/k at list boundaries (#1967)

Seamus3d9d0ebafbc1
diff --git a/js/app/packages/app/component/next-soup/soup-view/use-soup-navigation-hotkeys.ts b/js/app/packages/app/component/next-soup/soup-view/use-soup-navigation-hotkeys.ts
index 284a48a529..02544b92a5 100644
--- a/js/app/packages/app/component/next-soup/soup-view/use-soup-navigation-hotkeys.ts
+++ b/js/app/packages/app/component/next-soup/soup-view/use-soup-navigation-hotkeys.ts
@@ -77,6 +77,10 @@ export const useSoupNavigationHotkeys = (
const nextRow = next?.item;
if (!nextRow) return true;
+ // At the boundary (top/bottom), peekOffset clamps and returns the
+ // same item we're already focused on. No-op to avoid toggling.
+ if (focusedEntity && nextRow.id === focusedEntity.id) return true;
+
if (!focusedEntity) {
navigateAndSelectEntity(offset);
return true;