@@ -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-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.
7277const workspace = Blockly .inject (' blocklyDiv' , {
7378 toolbox: toolboxCategories,
@@ -85,6 +90,10 @@ import * as Blockly from 'blockly';
8590import {KeyboardNavigation } from ' @blockly/keyboard-navigation' ;
8691import {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.
8998const workspace = Blockly .inject (' blocklyDiv' , {
9099 toolbox: toolboxCategories,
0 commit comments