Skip to content

Commit 1fc8c2c

Browse files
authored
chore: update readme with style instructions (#656)
1 parent e5a784b commit 1fc8c2c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ triage the bug and add it to the roadmap.
4747

4848
### Installation
4949

50-
Using this plugin requires using at least Blockly v12.1.0. You can find the
50+
Using this plugin requires using at least Blockly v12.2.0. You can find the
5151
current minimum required version of Blockly in the `peerDependencies`
5252
section of the `package.json` file for the plugin.
5353

@@ -68,6 +68,11 @@ npm install @blockly/keyboard-navigation --save
6868
```js
6969
import * as Blockly from 'blockly';
7070
import {KeyboardNavigation} from '@blockly/keyboard-navigation';
71+
72+
// Register styles. Only do this once per page-load.
73+
// Must be done before calling Blockly.inject.
74+
KeyboardNavigation.registerKeyboardNavigationStyles();
75+
7176
// Inject Blockly.
7277
const workspace = Blockly.inject('blocklyDiv', {
7378
toolbox: toolboxCategories,
@@ -85,6 +90,10 @@ import * as Blockly from 'blockly';
8590
import {KeyboardNavigation} from '@blockly/keyboard-navigation';
8691
import {CrossTabCopyPaste} from '@blockly/plugin-cross-tab-copy-paste';
8792

93+
// Register styles. Only do this once per page-load.
94+
// Must be done before calling Blockly.inject.
95+
KeyboardNavigation.registerKeyboardNavigationStyles();
96+
8897
// Inject Blockly.
8998
const workspace = Blockly.inject('blocklyDiv', {
9099
toolbox: toolboxCategories,

0 commit comments

Comments
 (0)