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.

fix(calendar): stop event details popover from blocking inbox arrow-key navigation (#6079)

gbirman76ea50b215bd
diff --git a/apps/web/src/features/block-calendar/components/SelectedEventDetails.tsx b/apps/web/src/features/block-calendar/components/SelectedEventDetails.tsx
index 8a96453881..4fcfdc4c85 100644
--- a/apps/web/src/features/block-calendar/components/SelectedEventDetails.tsx
+++ b/apps/web/src/features/block-calendar/components/SelectedEventDetails.tsx
@@ -415,6 +415,14 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {
event.preventDefault();
}
}}
+ onOpenAutoFocus={(event) => {
+ // Aims can arrive while the keyboard is elsewhere — arrow-key
+ // scanning in the inbox previews a calendar notification here,
+ // and auto-focusing the popover would silence the list's
+ // navigation hotkeys (hotkey scope follows focus). Escape
+ // still closes it from anywhere via the document listener.
+ event.preventDefault();
+ }}
onFocusOutside={(event) => {
// Deep links open this popover while their freshly-opened
// split is still claiming focus; that focus movement lands