diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index 2ae5f3f..197deff 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -343,7 +343,7 @@ export function Sidebar({ sessions, activeSession, onSwitch, onDelete, onSplit,
return (
<>
- {open &&
}
+ {open && { if (e.key === 'Escape') onClose(); }} role="button" tabIndex={-1} aria-label="Close sidebar" />}