You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
92
@@ -93,7 +98,20 @@ In order to see the keyboard help popup when the user presses /, you need to add
93
98
...
94
99
```
95
100
96
-
### Usage with cross-tab-copy-paste plugin
101
+
### Use with custom Toolbox implementation
102
+
103
+
If you supply your own subclass of `Toolbox`, you need to override the `onKeyDown_` method to make it a no-op. The base class has its own keyboard navigation built-in that you need to disable.
104
+
105
+
```js
106
+
classYourCustomToolboxextendsBlockly.Toolbox {
107
+
protected override onKeyDown_(e:KeyboardEvent) {
108
+
// No-op, prevent keyboard handling by superclass in order to defer to
109
+
// global keyboard navigation.
110
+
}
111
+
}
112
+
```
113
+
114
+
### Use with cross-tab-copy-paste plugin
97
115
98
116
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