File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
5151current minimum required version of Blockly in the ` peerDependencies `
5252section of the ` package.json ` file for the plugin.
5353
@@ -68,6 +68,11 @@ npm install @blockly/keyboard-navigation --save
6868``` js
6969import * as Blockly from ' blockly' ;
7070import {KeyboardNavigation } from ' @blockly/keyboard-experiment' ;
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.
7277const workspace = Blockly .inject (' blocklyDiv' , {
7378 toolbox: toolboxCategories,
You can’t perform that action at this time.
0 commit comments