Skip to content

Commit c4be140

Browse files
committed
feat: enable keyboard mode for toolbox shortcut
1 parent 5b2b15e commit c4be140

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/navigation_controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
Toolbox,
1919
utils as BlocklyUtils,
2020
WorkspaceSvg,
21+
keyboardNavigationController,
2122
} from 'blockly/core';
2223

2324
import * as Constants from './constants';
@@ -198,6 +199,7 @@ export class NavigationController {
198199
preconditionFn: (workspace) =>
199200
!workspace.isDragging() && this.navigation.canCurrentlyEdit(workspace),
200201
callback: (workspace) => {
202+
keyboardNavigationController.setIsActive(true);
201203
switch (this.navigation.getState(workspace)) {
202204
case Constants.STATE.WORKSPACE:
203205
Blockly.getFocusManager().focusTree(

0 commit comments

Comments
 (0)