Behaviour SwRS-MDOKFSTUDIO-BLOCK-254
Right and Left move the block selection down and up the structure
When edit mode is on and no editor is open, the page SHALL move the keyboard selection one level down with ArrowRight (a table to its first cell, an admonition, card or tab to its first inner block, a list to its first item, a list item to its first inner block, the whole page to its first block) and one level up with ArrowLeft or Escape, move a selected table cell with the four arrow keys without wrapping, and open with Enter the editor of the selected cell, list item or block of a list item.
Part of StRS-MDOKFSTUDIO-BLOCK-008, outside the paths drawn on its map.
Scenarios 4
The situations the tests check; open one to read it.
nominalRight goes down, Left and Escape go up
| Input | Outcome |
|---|---|
| ArrowRight on a block with no inner block and no cells | Nothing changes |
| ArrowLeft on a top-level block, or with nothing selected | Nothing changes |
| Escape on a top-level block | The selection is cleared, as in BLOCK-004 |
| ArrowUp or ArrowDown on an inner block | The selection moves to the previous or next inner block of the same parent and stops at the first and the last |
| ArrowUp or ArrowDown on a top-level block | The block-to-block selection of BLOCK-004 |
| A block that comes from an include | It is never entered |
nominalWalking the cells of a table
Escape returns the selection to the table block. Enter opens the cell editor through the same path as a click on the cell, and the cell highlight goes away.
nominalWalking a list
A click on a list item opens the item, not the block under the click (SwRS-MDOKFSTUDIO-BLOCK-014): only the keyboard reaches a block inside an item.
refusalKeys that belong to other controls
| Input | Outcome |
|---|---|
| Any of these keys with edit mode off, an editor open, or inside a text box, a field or the properties table | Not handled here |
| Any of these keys with Shift, Alt, Ctrl or Cmd | Not handled here (Shift extends a run, BLOCK-140; Alt moves, BLOCK-156) |