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.

368 B
Raw Blame
/** A late-loading document may claim focus only while its own shell still owns it. */
export function shouldAutofocusDocument(
  block: HTMLElement | null,
  panel: HTMLElement | null
) {
  const active = document.activeElement;
  return (
    active === document.body ||
    active === document.documentElement ||
    active === block ||
    active === panel
  );
}