Skip to content

Commit 5d304df

Browse files
authored
chore: Remove the keyboard-navigation plugin from the advanced playground (#9670)
1 parent 1ad0608 commit 5d304df

3 files changed

Lines changed: 0 additions & 37 deletions

File tree

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/blockly/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
"devDependencies": {
106106
"@blockly/block-test": "^7.0.2",
107107
"@blockly/dev-tools": "^9.0.2",
108-
"@blockly/keyboard-navigation": "^3.0.1",
109108
"@blockly/theme-modern": "^7.0.1",
110109
"@hyperjump/browser": "^1.1.4",
111110
"@hyperjump/json-schema": "^1.5.0",

packages/blockly/tests/playgrounds/advanced_playground.html

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
await loadScript(
1919
'../../node_modules/@blockly/theme-modern/dist/index.js',
2020
);
21-
await loadScript(
22-
'../../node_modules/@blockly/keyboard-navigation/dist/index.js',
23-
);
2421

2522
let kbNavigation;
2623

@@ -52,28 +49,6 @@
5249
// Refresh theme.
5350
ws.setTheme(ws.getTheme());
5451
});
55-
56-
// Keyboard navigation options.
57-
const kbOptions = {
58-
'Enable keyboard navigation': false,
59-
};
60-
gui.remember(kbOptions);
61-
gui.add(kbOptions, 'Enable keyboard navigation').onChange((enabled) => {
62-
setupKeyboardNav(enabled, playground);
63-
});
64-
65-
// Set up keyboard navigation on page load
66-
setupKeyboardNav(kbOptions['Enable keyboard navigation'], playground);
67-
}
68-
69-
function setupKeyboardNav(enabled, playground) {
70-
if (enabled) {
71-
kbNavigation = new KeyboardNavigation(playground.getWorkspace());
72-
} else {
73-
if (kbNavigation) {
74-
kbNavigation.dispose();
75-
}
76-
}
7752
}
7853

7954
function initPlayground() {
@@ -128,8 +103,6 @@
128103
};
129104

130105
Blockly.ContextMenuItems.registerCommentOptions();
131-
KeyboardNavigation.registerKeyboardNavigationStyles();
132-
// TODO: register the navigation-deferring toolbox.
133106

134107
createPlayground(
135108
document.getElementById('root'),

0 commit comments

Comments
 (0)