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
tweak(recipient-selector): allow escape to blur combo-box (non-ARIA) (#240)
Seamus8a899054cdc5
diff --git a/js/app/packages/core/component/RecipientSelector.tsx b/js/app/packages/core/component/RecipientSelector.tsxindex 059691ad4b..66260b0e4d 100644--- a/js/app/packages/core/component/RecipientSelector.tsx+++ b/js/app/packages/core/component/RecipientSelector.tsx@@ -424,7 +424,6 @@ export function RecipientSelector<K extends CombinedRecipientKind>()}>{(userOrContactOption) => {- console.log('OPT', userOrContactOption());const opt = userOrContactOption();const name = getRecipientOptionName(opt);const email = getRecipientOptionEmail(opt);@@ -499,6 +498,11 @@ export function RecipientSelector<K extends CombinedRecipientKind>(setDisabled(true);queueMicrotask(() => setDisabled(false));}+ if (e.key === 'Escape') {+ if (inputValue().length === 0) {+ inputRef()?.blur();+ }+ }}}/></div>