We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782a84e commit 8ac253cCopy full SHA for 8ac253c
src/navigation_deferring_toolbox.ts
@@ -6,13 +6,20 @@
6
7
import * as Blockly from 'blockly/core';
8
9
+/**
10
+ * Toolbox class that does not handle keyboard navigation.
11
+ */
12
export class NavigationDeferringToolbox extends Blockly.Toolbox {
13
+ // eslint-disable-next-line @typescript-eslint/naming-convention
14
protected override onKeyDown_(e: KeyboardEvent) {
15
// No-op, prevent keyboard handling by superclass in order to defer to
16
// global keyboard navigation.
17
}
18
19
20
21
+ * Registers the navigation-deferring toolbox with Blockly.
22
23
export function registerNavigationDeferringToolbox() {
24
Blockly.registry.register(
25
Blockly.registry.Type.TOOLBOX,
0 commit comments