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
fix(settings): focus panel on mount so Escape works immediately (#4693)
Jacob Beckerman73a7f610ce47
diff --git a/js/app/packages/app/component/settings/Settings.tsx b/js/app/packages/app/component/settings/Settings.tsxindex 9454cf2c4c..82e605da77 100644--- a/js/app/packages/app/component/settings/Settings.tsx+++ b/js/app/packages/app/component/settings/Settings.tsx@@ -109,6 +109,11 @@ export function SettingsPanel(props: SettingsPanelProps) {onMount(() => {if (!settingsContainerRef) return;attachHotkeys(settingsContainerRef);+ // Activate the "settings" hotkey scope immediately so Escape (and the+ // other settings hotkeys) work as soon as the panel opens, rather than+ // only after the user clicks into it (the scope only activates on+ // `focusin`).+ settingsContainerRef.focus();resizeObserver = new ResizeObserver((entries) => {const width = entries[0]?.contentRect.width;if (width) setPanelWidth(width);