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.

398 B
Raw Blame
import type { NavigationCause, ReferredFrom } from './layoutManager';

/** Content claims keyboard focus only after a command jump or creation. */
export function shouldAutofocusNavigation(
  referredFrom: ReferredFrom | undefined,
  cause: NavigationCause
) {
  return (
    (cause === 'fresh' || cause === 'replace') &&
    (referredFrom === 'kommand-menu' || referredFrom === 'launcher')
  );
}