fix close menu on escape

This commit is contained in:
vcoppe
2024-06-11 22:04:49 +02:00
parent c72b817e8f
commit 3e691c7f12

View File

@@ -54,7 +54,7 @@
<svelte:window
on:keydown={(e) => {
if ($currentTool && e.key === 'Escape') {
if ($currentTool !== null && e.key === 'Escape') {
currentTool.set(null);
}
}}