fix: escape not working during stream configure

This commit is contained in:
talksik
2026-03-21 15:39:20 -07:00
parent 35f24cb0ef
commit e488cc79d0
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -178,7 +178,13 @@ export function ComposeOverlay({
const handleKeyDown = (e: KeyboardEvent) => {
const currentStep = stepRef.current;
if (currentStep === "typing" || currentStep === "configuring") return;
if (currentStep === "typing" || currentStep === "configuring") {
if (e.key === "Escape") {
e.preventDefault();
cancel();
}
return;
}
const target = e.target as HTMLElement;
if (
@@ -76,6 +76,7 @@ export function ConfigureStreamStep({
<Label className="mb-1 text-xs text-white/50">Stream name</Label>
<Input
type="text"
autoFocus
value={name}
onChange={(e) => {
setName(e.target.value);