You don’t need a mouse to use the Blocks editor. Every block can be selected, moved, edited, inserted and deleted from the keyboard. This helps anyone who finds dragging hard, and it is often quicker once you know the keys. Screen readers announce each block by name.
Dragging still works exactly as before. You can mix the two however you like.
Press Tab until the Blocks workspace is focused. The workspace is a single stop in the Tab order, so one more Tab takes you on to the next part of the page. A white-and-black ring shows which block is selected.
Clicking a block selects it too, so you can click once and carry on with the keyboard.
| Key | What it does |
|---|---|
| Up / Down | Go to the previous or next block. On procedure headers (hats), this moves between stacks. |
| Right | Go into the body of a block that holds other blocks, such as repeat or a procedure. |
| Left | Leave the body and go back to the block that holds it. |
| Escape | Put focus back on the workspace. |
| Key | What it does |
|---|---|
| Alt+Up / Alt+Down | Move the selected block up or down within its body. |
| Enter | Insert a new block after the selected one. A picker opens so you can choose the command. |
| F2 | Edit the block’s first input. Enter or Escape finishes and returns focus to the block. Inside the selected block, Tab also reaches each of its inputs; press Enter, Space or F2 on one to edit it. |
| Delete or Backspace | Delete the selected block. Selection moves to the next block. |
| Shift+Delete | Delete the selected block and every block after it on the same line. |
| Shift+F10 or the Menu key | Open the block menu: Insert after, Move up, Move down, Duplicate and Delete. Right-clicking a block opens the same menu. |
| Ctrl+Z | Undo. Focus goes back to the block you were working on. |
| Ctrl+Y or Ctrl+Shift+Z | Redo. |
On a Mac, use ⌘ in place of Ctrl.
Every block in the palette on the left is a button. Tab to one, or search for it, and press Enter or Space to place it without dragging:
repeat), the new block goes at the top of its body.The new block is selected straight away, so you can keep going: press F2 to fill in its inputs, or Alt+Up/Down to nudge it into place. Inserting works with undo, just like a drop.
While a block in the workspace is focused, arrow keys, Enter and Delete only affect your blocks. They don’t reach the console or your running program. Click the 3D view or the console when you want the keys to go to Logo again.
For more about the Blocks editor, see About the webIDE.