{#if $currentTool !== null}
{#if $currentTool === Tool.ROUTING} {:else if $currentTool === Tool.SCISSORS} {:else if $currentTool === Tool.WAYPOINT} {:else if $currentTool === Tool.TIME}
{/if} { if ($currentTool !== null && e.key === 'Escape') { currentTool.set(null); } }} />