diff --git a/src/Tooltip/Tooltip.svelte b/src/Tooltip/Tooltip.svelte index 0635c38c..b6191b6f 100644 --- a/src/Tooltip/Tooltip.svelte +++ b/src/Tooltip/Tooltip.svelte @@ -75,6 +75,7 @@ function onKeydown(e) { if (e.key === "Escape" || e.key === "Tab") { e.stopPropagation(); + if (e.key === "Escape") refIcon?.focus(); open = false; } else if (e.key === " " || e.key === "Enter") { e.stopPropagation();