Skip to content

Commit 666ba80

Browse files
feat: open flyout or toolbox when pressing enter on the workspace (#115)
* feat: open flyout or toolbox when pressing enter on the workspace * chore: Update src/navigation.ts Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> --------- Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
1 parent e50512a commit 666ba80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/navigation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,11 @@ export class Navigation {
12381238
nodeType == Blockly.ASTNode.types.WORKSPACE
12391239
) {
12401240
this.markAtCursor(workspace);
1241+
if (workspace.getToolbox()) {
1242+
this.focusToolbox(workspace);
1243+
} else {
1244+
this.focusFlyout(workspace);
1245+
}
12411246
} else if (nodeType == Blockly.ASTNode.types.BLOCK) {
12421247
this.warn('Cannot mark a block.');
12431248
} else if (nodeType == Blockly.ASTNode.types.STACK) {

0 commit comments

Comments
 (0)