Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-BLOCK-261

A one-line editor commits on Enter and ignores Tab

When the writer presses Enter in an editor opened on a card title, :header: or :footer: line, the page SHALL save the line and close the editor as Done does, and Shift+Enter, Alt+Enter, Tab and Shift+Tab SHALL insert and save nothing and leave the editor open, so that no blank line ends the options of the card.

Part of StRS-MDOKFSTUDIO-BLOCK-008, outside the paths drawn on its map.

Scenarios 2

The situations the tests check; open one to read it.

nominalEnter saves a one-line card editor
Givenedit mode on a `{card}` whose line 18 is `:header: Since v2.1.154, published 2026-05-28` and line 19 `:footer: Documented in the workflows guide`
Whenthe writer clicks the header, presses End, types " Q" and presses Enter
Thenthe editor saves the single line `:header: Since v2.1.154, published 2026-05-28 Q` and closes, as Done or Cmd/Ctrl+Enter does: the document changes one line (-1 +1) and `:footer:` still follows the header line, with no blank line between them
Input in an editor opened on a card title, `:header:` or `:footer:` lineOutcome
Enter (no modifier, no composition in progress)The line is saved and the editor closes; no newline is inserted
Shift+EnterNothing is inserted and the editor stays open
Alt+Enter or Alt+Shift+EnterIgnored like Shift+Enter: nothing is inserted, nothing is saved and the editor stays open
Cmd/Ctrl+EnterThe line is saved and the editor closes (done, as in any block editor)
Tab or Shift+TabNothing happens: the line is neither indented nor outdented and the focus stays in the editor
Enter while the slash menu, a palette popup or the alt text of an image takes the keyThat control handles Enter, as in any block editor
boundaryOther one-line editors keep Enter as a new line
Givenan editor opened on a one-line paragraph or a one-line heading (its first and last lines are the same)
Whenthe writer presses Enter or Shift+Enter
Thenthe text box inserts a newline as in every other block editor: only the parts the renderer marks as one-line card parts (`data-single-line`) take Enter as done, never a block found one-line by its line range; a linked card title is mapped to its directive line and is marked single-line like any card title

Implemented in 2

Tested by 3

Replaces

SwRS-MDOKFSTUDIO-BLOCK-258A click on a card title or option opens the editor on its own line, the title is inline text and Enter saves a one-line editor superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-260, SwRS-MDOKFSTUDIO-BLOCK-261 Markdown file