Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-BLOCK-255

A block editor that opens late leaves the focus in a field that took it

When the source of a block editor or of a table cell editor reaches the page after another text field outside the editor took the focus (the find field opened with Cmd/Ctrl+F right after the click), the page SHALL build the editor without moving the focus, so text typed in that field never reaches the Markdown source.

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

Part of StRS-MDOKFSTUDIO-TABLE-001, outside the paths drawn on its map.

Scenarios 3

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

nominalThe find field keeps the focus
Givenedit mode on and a click on a block, whose editor waits for its source from the host
Whenthe find bar opens before the source arrives (Cmd/Ctrl+F) and the source then arrives
Thenthe editor is built with its text box and stays open, and the find field keeps the focus: what the writer types goes on into the search, not into the Markdown source
InputOutcome
Another text field, select or editable element outside the editor took the focusIt keeps the focus; the editor opens unfocused
The focus is where it was when the editor opened (the page, the clicked block)The text box takes the focus as in BLOCK-014
The focus moved into the editor frame itselfThe text box takes the focus
boundaryThe editor stays open
Givenan editor built without the focus because another field held it
Whenthe writer looks at the find bar or clicks into the text box
Thenthe editor is an open edit like any other: replace in the find bar is refused until it is saved or cancelled, and a click in the text box edits it
nominalTable cell editor: The find field keeps the focus
Givenedit mode on and a click on a pipe table cell, whose editor waits for its source from the host
Whenthe find bar opens before the source arrives (Cmd/Ctrl+F) and the source then arrives
Thenthe cell editor is built with its text box, and the find field keeps the focus: what the writer types goes on into the search, not into the table cell
InputOutcome
Another text field, select or editable element outside the editor took the focusIt keeps the focus; the cell editor opens unfocused
The focus is where it was when the editor opened (the page, the clicked cell)The cell text box takes the focus as in TABLE-001
The focus moved into the editor frame itselfThe cell text box takes the focus

Implemented in 4

Tested by 3

Replaces

SwRS-MDOKFSTUDIO-TABLE-118A table cell editor that opens late leaves the focus in a field that took it superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-255 Markdown file