It seems to me that incorrect behaviour is taking place here. When the Esc key is pressed, the focus does not return to the body of the first element.
But I'm sure this may depend on the specific use case, so I have an idea to provide both behaviours via some "configuration" variables, if the current lib implementation makes it easy to implement this.
OS: Fedora 40 Browser: Firefox 128.0, Chromium 126.0
It seems to me that incorrect behaviour is taking place here. When the
Esc
key is pressed, the focus does not return to the body of the first element.But I'm sure this may depend on the specific use case, so I have an idea to provide both behaviours via some "configuration" variables, if the current lib implementation makes it easy to implement this.
ER:
AR:
Screencast:
https://github.com/user-attachments/assets/418494a8-732b-43b3-bc24-8e17bc4a2c96