#107827ESC key does not close dialogs in some cases
Description
This error was introduced by the new dialog handling in commit 979453369c3 (#107443).
Probably the ESC key handling is a bit different.
Reproduction steps
Occurence 1
- Open “Search” Dialog
- Use tab key to focus the Filter button
clipboard-202510241117-pmqvw.png - Press
ESCkey
Occurence 2
- Go to the “Edit page” Mode
- Navigate to the “Resources” Tab and activate the “Create new relation” Button
clipboard-202510241119-67euy.png - Focus any element apart from the close button
clipboard-202510241120-eqrsz.png - Press
ESCkey
Impact
Prevents closing open Dialogs using the ESC key depending on focused element
Target group
Keyboard user
Definition of Done
I OPEN a dialog
I focus an element inside the dialog
I can CLOSE the dialog using ESC key