Skip to content

Conversation

@rakesh2OO5
Copy link

This PR adds an optional tab-indentation toggle to the embedded CodeMirror editor.

Behavior

  • Default behavior remains accessibility-first (Tab exits the editor to avoid keyboard traps)
  • When enabled, Tab inserts a literal tab with a visual width of 4 spaces
  • Esc exits the editor in all modes

Notes

Because CodeMirror runs inside a contenteditable element, native Tab navigation
cannot resume unless the editor is explicitly exited. Blurring the editor preserves
WCAG 2.1 “No Keyboard Trap” behavior while allowing opt-in indentation.

Fixes #705.

@rakesh2OO5
Copy link
Author

All checks are passing now.
Happy to make any changes if needed — thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tab behavior toggle for website code editor convenience

1 participant