diff --git a/apps/web/src/components/CommandPalette.tsx b/apps/web/src/components/CommandPalette.tsx index 929a9f87e9c..029ec1f5e47 100644 --- a/apps/web/src/components/CommandPalette.tsx +++ b/apps/web/src/components/CommandPalette.tsx @@ -171,8 +171,10 @@ export function CommandPalette({ children }: { children: ReactNode }) { event.stopPropagation(); toggleOpen(); }; - window.addEventListener("keydown", onKeyDown); - return () => window.removeEventListener("keydown", onKeyDown); + // Capture phase so the shortcut fires even when a descendant (e.g. + // xterm, a contenteditable composer) would otherwise swallow the event. + window.addEventListener("keydown", onKeyDown, true); + return () => window.removeEventListener("keydown", onKeyDown, true); }, [keybindings, terminalOpen, toggleOpen]); return ( diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index 826f2d9e0fd..aed0a5c1d0e 100644 --- a/apps/web/src/components/GitActionsControl.tsx +++ b/apps/web/src/components/GitActionsControl.tsx @@ -1121,6 +1121,7 @@ export default function GitActionsControl({
Commit message (optional)