From d5e27b559eca80b415b1db05439cffa5225f3113 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 21 Oct 2026 02:53:25 +0200 Subject: [PATCH] fix: Escape closes a menu on the first press again (#32799) Opening a menu moves the focus to its first entry, and when that entry has a tooltip the tooltip showed and took the first Escape, so the menu stayed open until Escape was pressed a second time. The open menu now gets Escape before the tooltip does and closes on the first press, while Escape in a submenu still closes only the submenu and Escape on a tooltip in a dialog still only hides the tooltip. Fixes #32798 --- src/lib/components/common/Dropdown.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/common/Dropdown.svelte b/src/lib/components/common/Dropdown.svelte index 337c2bf12d..4dfa5456bf 100644 --- a/src/lib/components/common/Dropdown.svelte +++ b/src/lib/components/common/Dropdown.svelte @@ -383,6 +383,7 @@ if (closeOnSelect && !e.defaultPrevented) closeDropdown(); }} on:pointerdown={(e) => e.stopPropagation()} + on:keydown={handleKeydown} >