Skip to content

Tabbing Gets Stuck in Code Editor #3437

Open
@Jatin24062005

Description

@Jatin24062005

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

Image

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:

  1. Open the p5.js Web Editor
  2. Click inside the code editor
  3. Press the Tab key repeatedly
  4. Notice that focus never leaves the editor

// Paste your code here :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:AccessibilityCategory for accessibility related features and bugsArea:EditorFor CodeMirror-related featuresBugError or unexpected behaviorsOn HoldWork on this issue is paused for now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions