diff --git a/frontend/src/TaskPanel.svelte b/frontend/src/TaskPanel.svelte
index 4e454b5..9b9a3d2 100644
--- a/frontend/src/TaskPanel.svelte
+++ b/frontend/src/TaskPanel.svelte
@@ -37,6 +37,12 @@ import TaskDisplay from "./TaskDisplay.svelte";
behavior: 'smooth'
}), 100)
}
+
+ function handleKeydown(e: KeyboardEvent) {
+ if (e.key === "Escape") {
+ close()
+ }
+ }
+