The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): read OVERLAY_SURFACE directly in composer-focus-keys
teknium19d5a076c4c81
diff --git a/apps/desktop/src/lib/keybinds/composer-focus-keys.ts b/apps/desktop/src/lib/keybinds/composer-focus-keys.tsindex b56ad899fd5..1c01f3ec4c7 100644--- a/apps/desktop/src/lib/keybinds/composer-focus-keys.ts+++ b/apps/desktop/src/lib/keybinds/composer-focus-keys.ts@@ -39,10 +39,6 @@ const ENTER_ACTIVATES = ['[role="treeitem"]'].join(',')-// Overlays that cover the whole window (portaled to the body, or the overlay-// shell itself) — one anywhere means the composer is behind it.-const BLOCKING_OVERLAY = OVERLAY_SURFACE-// Blockers that live INSIDE a chat surface. Inactive tabs stay mounted, so this// one has to be visible-scoped: a clarify card waiting in a background thread// must not take the foreground composer's letter keys.@@ -155,7 +151,7 @@ export function composerFocusBlockedBySurface(): boolean {switcherActive() ||$workspaceIsPage.get() ||isFocusWithin('[data-terminal]') ||- Boolean(document.querySelector(BLOCKING_OVERLAY))+ Boolean(document.querySelector(OVERLAY_SURFACE)))}