processing / processing/p5.js-web-editor
Tabbing Gets Stuck in Code Editor
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 1.7k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 8
Description
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
When using the p5.js Web Editor, pressing the Tab key inside the Code Editor causes the focus to get trapped. It behaves like an indentation key (which is expected in a code editor), but this results in an infinite tab trap, making it impossible for users to navigate to any UI components outside the editor using only the keyboard
Expected Behavior
Users should be able to press a keyboard shortcut (e.g., Esc or Ctrl + M) to exit the editor and resume normal tab focus movement across the interface.
Alternatively, consider adding an invisible but focusable element after the editor to allow users to tab out.
Steps to reproduce
Steps:
- Open the p5.js Web Editor
- Click inside the code editor
- Press the Tab key repeatedly
- Notice that focus never leaves the editor
// Paste your code here :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the p5.js Web Editor using the listed keyboard steps, then locate the Code Editor's focus and Tab handling. Determine how keyboard users can leave the editor without losing expected indentation behavior, and verify that focus reaches UI components outside the editor using the chosen exit behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100