Skip to content

make tab work in editor - #909

Open
SharonStrats wants to merge 1 commit into
stagingfrom
fix-editor-tab
Open

SharonStrats wants to merge 1 commit into
stagingfrom
fix-editor-tab

Conversation

@SharonStrats

Copy link
Copy Markdown
Collaborator

The tab inside the editor was going to the save changes instead of tabbing inside the editor.

@SharonStrats SharonStrats self-assigned this Oct 25, 2026
Copilot AI balanced review requested due to automatic review settings October 25, 2026 05:04
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Oct 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change uses CodeMirror’s standard binding and includes a matching registration test, with no blocking issues identified.

No open issues 🎉

What changed in this PR

This PR makes Tab indent within the code editor instead of moving focus to the save control.

Changes:

  • Adds CodeMirror’s standard indentWithTab binding before the existing keymaps.
  • Adds a unit test verifying that the Tab binding is registered first.
File Description
test/​unit/​codeEditor.test.js Mocks the indentation binding and tests its keymap placement.
src/​lib/​code-editor/​CodeEditor.ts Imports and registers indentWithTab.

Review effort: Balanced

@SharonStrats SharonStrats linked an issue Oct 25, 2026 that may be closed by this pull request

This branch has not been deployed

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

Labels

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Tabbing inside the editor

2 participants