Pressing escape from a combobox in a dialog closes the dialog too #3

Open
opened 2026-06-16 10:30:26 -07:00 by end · 0 comments
Owner

Some sort of "escape manager" is in order to make sure that pressing escape doesn't make it to other elements. Or perhaps there's a simpler solution, maybe I just need to be preventing default with the event in comboboxes and/or dialogs so that it doesn't bubble down to other elements that don't have focus. I do seem to remember fighting with dialogs to make sure that nested dialogs would properly handle escape presses, so it's possible that I got overzealous with the event listener.

Some sort of "escape manager" is in order to make sure that pressing escape doesn't make it to other elements. Or perhaps there's a simpler solution, maybe I just need to be preventing default with the event in comboboxes and/or dialogs so that it doesn't bubble down to other elements that don't have focus. I do seem to remember fighting with dialogs to make sure that nested dialogs would properly handle escape presses, so it's possible that I got overzealous with the event listener.
end added the bug label 2026-06-16 10:30:26 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: svelte-toolkit/sui#3