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: scope expand/collapse hotkey to active split (#2667)

gbirmanfd0aabb1711a
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 e0c04b186e..f9f8e88509 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
@@ -197,7 +197,11 @@ export const useSoupNavigationHotkeys = (
const getCollapsibleToggle = () => {
const focusedId = soup.focus.id();
if (!focusedId) return undefined;
- const entityEl = document.querySelector(`[data-entity-id="${focusedId}"]`);
+ const splitEl = document.querySelector(
+ `[data-split-id="${splitHandle.id}"]`
+ );
+ if (!splitEl) return undefined;
+ const entityEl = splitEl.querySelector(`[data-entity-id="${focusedId}"]`);
if (!entityEl) return undefined;
return entityEl.querySelector(
'button[data-collapsible-toggle]'