Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
present-mode: On toggle success, focus back to active split
Caleb Taylor3e70f21eb93b
diff --git a/js/app/packages/app/component/dock/Dock.tsx b/js/app/packages/app/component/dock/Dock.tsxindex 860eb4e95b..24688ed5ab 100644--- a/js/app/packages/app/component/dock/Dock.tsx+++ b/js/app/packages/app/component/dock/Dock.tsx@@ -40,6 +40,7 @@ export function Dock() {const { settingsOpen } = useSettingsState();const toggleRightPanel = useToggleRightPanel();const isRightPanelCollapsed = () => !isRightPanelOpen();+ const activeSplitId = createMemo(() => globalSplitManager()?.activeSplitId());const notificationSource = useGlobalNotificationSource();@@ -88,6 +89,7 @@ export function Dock() {// IE/Edgeawait (element as any).msRequestFullscreen();}+ focusActiveSplit();} catch (error) {console.error('Error entering present mode:', error);}@@ -107,11 +109,21 @@ export function Dock() {// IE/Edgeawait (document as any).msExitFullscreen();}+ focusActiveSplit();} catch (error) {console.error('Error exiting present mode:', error);}};+ const focusActiveSplit = () => {+ const id = activeSplitId();+ if (!id) return null;+ const splitEl = document.querySelector(+ `[data-split-id="${id}"]`+ ) as HTMLElement;+ splitEl?.focus();+ };+const togglePresentMode = () => {if (isPresentMode()) {exitPresentMode();