Skip to content

Commit

Permalink
Blockly: include multiselect feature in the sidebar doc
Browse files Browse the repository at this point in the history
openhab/openhab-webui#2419

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Feb 29, 2024
1 parent f1a563f commit b68f70d
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions mainui/settings/blockly-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,42 @@ title: Blockly Editor
<!-- START MAINUI SIDEBAR DOC - DO NOT REMOVE -->
The Blockly editor is used to create automation using Blockly.

## Keyboard Shortcuts
## Mouse & Keyboard Tips

The following is a short overview of the most important keyboard shortcuts.

Mac users should use <kbd>Cmd</kbd> instead of <kbd>Ctrl</kbd> for most shortcuts.

Panning & Zooming:

- <kbd>Click+Drag</kbd>, <kbd>Scroll Wheel</kbd> (mouse), or <kbd>Two Fingers</kbd> (trackpad) to pan around.
- <kbd>Ctrl+Scroll Wheel</kbd> or <kbd>Ctrl+Two Fingers</kdb> to zoom in and out.

Selection:

- Click a block to select it.
- <kbd>Shift+Click</kbd> or <kbd>Shift+Drag</kbd>: Select multiple blocks.
- <kbd>Ctrl+A</kbd>: Select all blocks.
- Clicking on an empty area deselects everything.

Deleting a block:
Deleting Blocks:

- Once selected, it can be deleted with the <kbd>Delete</kbd> key.
- Alternatively the block can be dragged into the toolbox area to delete it.
- <kbd>Delete</kbd>: Delete the selected blocks.
- Alternatively, the blocks can be deleted by dragging them into the toolbox area.

Copy & Paste:

- <kbd>Ctrl+C</kbd>: Copy the selected block.
- <kbd>Ctrl+X</kbd>: Cut selected block.
- <kbd>Ctrl+C</kbd>: Copy the selected blocks.
- <kbd>Ctrl+X</kbd>: Cut selected blocks.
- <kbd>Ctrl+V</kbd>: Paste what has been copied.
- Blocks can be pasted into another Blockly script in a different browser window/tab.

Redo & Undo:

- <kbd>Ctrl+Z</kbd>: Undo the last change.
- <kbd>Ctrl+Y</kbd> (<kbd>Shift+Cmd+Z</kbd> on Mac): Redo the last change.

Commenting:

- Right click on the block and select <kbd>Add Comment</kbd>
<!-- END MAINUI SIDEBAR DOC - DO NOT REMOVE -->

0 comments on commit b68f70d

Please sign in to comment.