p5.js-web-editor
p5.js-web-editor copied to clipboard
Editor is a focus trap
p5.js version
N/A (Online Editor)
What is your operating system?
Linux
Web browser and version
Firefox 142
Actual Behavior
Entering the editor is possible with the keyboard but it isn't possible to leave it using the escape key. This is a "focus trap" which is covered in WCAG 2.1.2.
Expected Behavior
This may be a possible hint for fixing in a recent change in ACE editor behavior which is resolved recently in https://github.com/ajaxorg/ace/pull/5114
Steps to reproduce
Steps:
- Open the p5.js web editor
- Give the code editor focus
- Try to leave the code editor
See https://codeberg.org/sketchingpy/Sketchingpy/pulls/65/files for example of recent fix we saw on https://sketchingpy.org
Thanks for raising this and suggesting a potential fix!