Skip to content

Commit 7ee7ba5

Browse files
authored
chore(docs): add shortcuts help to readme (#663)
1 parent 138c33c commit 7ee7ba5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ const workspace = Blockly.inject('blocklyDiv', {
8181
const keyboardNav = new KeyboardNavigation(workspace);
8282
```
8383

84+
## Add shortcuts to page
85+
86+
In order to see the keyboard help popup when the user presses /, you need to add an empty div element to the hosting page that has the Blockly div element with the id "shortcuts". The plugin will take care of layout and formatting.
87+
88+
```html
89+
...
90+
<div id="shortcuts"></div>
91+
...
92+
<div id="blockly"></div>
93+
...
94+
```
95+
8496
### Usage with cross-tab-copy-paste plugin
8597

8698
This plugin adds context menu items for copying & pasting. It also adds feedback to copying & pasting as toasts that are shown to the user upon successful copy or cut. It is compatible with the `@blockly/plugin-cross-tab-copy-paste` by following these steps:

0 commit comments

Comments
 (0)