fix close menu on escape
This commit is contained in:
parent
c72b817e8f
commit
3e691c7f12
@ -54,7 +54,7 @@
|
||||
|
||||
<svelte:window
|
||||
on:keydown={(e) => {
|
||||
if ($currentTool && e.key === 'Escape') {
|
||||
if ($currentTool !== null && e.key === 'Escape') {
|
||||
currentTool.set(null);
|
||||
}
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user