Modal doesn't close when the escape key is pressed
seezee opened this issue · comments
Modal doesn't close when the escape key is pressed. Here's why it should: https://accessibility.18f.gov/keyboard/
This should probably apply to the slider and several other components as well.
Hi @seezee,
the modal escape pressing esc
would require additional Javascript. You could build it on your own or use external libraries.
The focus trap is explained here https://www.cssui.dev/docs/components/modal/#focus-trap
Close this issue then. Thanks 🙌