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.

367 B
Raw Blame
/**
 * Returns true if the user's most recent input modality matches the provided value.
 *
 * The modality reflects the most recent input type the user has used.
 */
export function isModality(modality: 'mouse' | 'keyboard' | 'touch'): boolean {
  if (typeof document === 'undefined') return false;
  return document.documentElement.dataset.modality === modality;
}