closeTooltip()}
on:keydown|stopPropagation|preventDefault={() => {}}
/>
{/if}
{
if ($tooltip.kind !== 'popup') {
hideTooltip()
}
}}
on:mousemove={(ev) => {
whileShow(ev)
}}
on:keydown={(evt) => {
if (($tooltip.component || $tooltip.label) && evt.key === 'Escape' && $tooltip.kind !== 'popup') {
evt.preventDefault()
evt.stopImmediatePropagation()
hideTooltip()
}
}}
/>
{#if $tooltip.component && $tooltip.kind !== 'submenu'}
{:else if $tooltip.label && $tooltip.kind !== 'submenu'}
{:else if $tooltip.kind === 'submenu'}
{/if}