fix close menu on escape
This commit is contained in:
parent
c72b817e8f
commit
3e691c7f12
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<svelte:window
|
<svelte:window
|
||||||
on:keydown={(e) => {
|
on:keydown={(e) => {
|
||||||
if ($currentTool && e.key === 'Escape') {
|
if ($currentTool !== null && e.key === 'Escape') {
|
||||||
currentTool.set(null);
|
currentTool.set(null);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue