Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix: leave Escape to the rewind confirmation over the model quick-pick

EtienneLescotf82c20a79af0
diff --git a/src/components/ai-edition/LeftPanel.tsx b/src/components/ai-edition/LeftPanel.tsx
index e1852e554..3a490a772 100644
--- a/src/components/ai-edition/LeftPanel.tsx
+++ b/src/components/ai-edition/LeftPanel.tsx
@@ -861,12 +861,14 @@ export function ChatStripPanel() {
if (event.key !== "Escape") return;
event.preventDefault();
event.stopPropagation();
+ // The rewind confirmation, open above it, takes this press: one Escape, one layer.
+ if (rewindFor) return;
setModelPopoverOpen(false);
modelButtonRef.current?.focus();
};
document.addEventListener("keydown", onKeyDown);
return () => document.removeEventListener("keydown", onKeyDown);
- }, [modelPopoverOpen]);
+ }, [modelPopoverOpen, rewindFor]);
// Prefer the main process's estimate of the windowed history it actually sends, so
// manual compaction can shrink this meter while the complete transcript remains