mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 08:42:31 +00:00
fix close menu on escape
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user