Skip to content

make tab work in editor - #909

Merged
SharonStrats merged 2 commits into
stagingfrom
fix-editor-tab
Oct 29, 2026
Merged

SharonStrats merged 2 commits 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
@SharonStrats
SharonStrats merged commit 664edaf into staging Oct 29, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Oct 29, 2026
@SharonStrats
SharonStrats deleted the fix-editor-tab branch October 29, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Tabbing inside the editor

3 participants