Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bumbeishvili committed Sep 17, 2023
2 parents 8a45c82 + c8ebb04 commit f920b30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
"d3-shape": "3",
"d3-flextree": "2.1.2"
}
}
}
7 changes: 6 additions & 1 deletion src/d3-org-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,12 @@ export class OrgChart {
selector: "node-button-g",
data: (d) => [d]
})
.on("click", (event, d) => this.onButtonClick(event, d));
.on("click", (event, d) => this.onButtonClick(event, d))
.on("keydown", (event, d) => {
if (event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar') {
this.onButtonClick(event, d)
}
});

nodeButtonGroups.patternify({
tag: 'rect',
Expand Down

0 comments on commit f920b30

Please sign in to comment.