fix escape close

This commit is contained in:
Michael Freno
2026-01-03 15:07:48 -05:00
parent 9a10c88c98
commit f77efc137d

View File

@@ -3107,6 +3107,10 @@ export default function TextEditor(props: TextEditorProps) {
const handleKeyDown = (e: KeyboardEvent) => { const handleKeyDown = (e: KeyboardEvent) => {
if (e.key === "Escape") { if (e.key === "Escape") {
setIsFullscreen(false); setIsFullscreen(false);
const navigationElement = document.getElementById("navigation");
if (navigationElement) {
navigationElement.classList.remove("hidden");
}
setSearchParams({ fullscreen: undefined }); setSearchParams({ fullscreen: undefined });
} }
}; };