Skip to content

Commit

Permalink
Fix keyboard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed May 2, 2024
1 parent 79786ab commit 2e23275
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"dependencies": {
"@blockly/field-colour": "^4.0.2",
"@blockly/keyboard-navigation": "0.5.4",
"@blockly/keyboard-navigation": "0.5.11",
"@blockly/plugin-workspace-search": "8.0.9",
"@crowdin/crowdin-api-client": "^1.33.0",
"@fortawesome/fontawesome-free": "^5.15.4",
Expand Down
8 changes: 8 additions & 0 deletions pxtblocks/plugins/flyout/verticalFlyout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ export class VerticalFlyout implements Blockly.IFlyout {
}
}

getContents(): (Blockly.Block | Blockly.FlyoutButton)[] {
if (this.activeFlyout) {
return this.activeFlyout.getContents() as (Blockly.Block | Blockly.FlyoutButton)[];
}

return [];
}

protected blocksToString(xmlList: Element[]): string {
let xmlSerializer: XMLSerializer = null;
const serialize = (e: Element) => {
Expand Down

0 comments on commit 2e23275

Please sign in to comment.