Behaviour SwRS-MDOKFSTUDIO-TABLE-124
Tab in the last cell adds a row and shows the hint
When the writer presses Tab in the last cell of the last row of a table, the extension SHALL post a final save with an extra empty row and open the editor in its first cell, and the cell editor of that last cell SHALL show the hint Tab: new row before Done and Cancel.
Another outcome at step 1 of path 1 in StRS-MDOKFSTUDIO-TABLE-006, in the state “A cell editor is open”.
Scenarios 4
The situations the tests check; open one to read it.
nominalTab in the last cell adds a row
Giventhe editor in the last cell of a table with two body rows, with text typed in it
Whenthe writer presses Tab
Thena final previewEditSave with an extra empty row at the end and the typed text is posted, and after the re-render the editor opens in the first cell of the new row, which remembers that Tab added its row for that session only (see SwRS-MDOKFSTUDIO-TABLE-025)
nominalThe last cell shows the Tab hint
Givena table with two body rows, the editor in its first body cell
Whenthe writer clicks the last cell of the last row, then presses Shift+Tab
Thenthe editor of the last cell shows the text Tab: new row (marked `data-sphinx-preview-table-cell-hint`) in its actions row, its text box names the hint with `aria-describedby`; the editor of every other cell shows no hint and no `aria-describedby`; the hint follows the editor when it moves (Tab, Shift+Tab, an arrow key, a click) and, in a narrow pane, wraps without widening the cell beyond the room of SwRS-MDOKFSTUDIO-TABLE-006 or hiding Done and Cancel
refusalFinal save cannot be posted
Givena final save that cannot be posted
Whenthe writer presses Tab in the last cell
Thenthe pending navigation is cleared
boundaryA table inside a quote or an admonition
| Input | Outcome |
|---|---|
| Tab in the last cell of a pipe table inside a blockquote, a GFM alert or a MyST admonition | The row is added with the container prefix and, once the page renders the saved text, the editor reopens in the same table, found by its rank among the tables of the container, not in the first one (see SwRS-MDOKFSTUDIO-TABLE-121) |
Implemented in 2
Tested by 4
Replaces
SwRS-MDOKFSTUDIO-TABLE-035Tab and the arrow keys move through the table cells superseded superseded by SwRS-MDOKFSTUDIO-TABLE-123, SwRS-MDOKFSTUDIO-TABLE-124, SwRS-MDOKFSTUDIO-TABLE-125, SwRS-MDOKFSTUDIO-TABLE-126 Markdown file