Skip to content

Commit

Permalink
client: Fix F1 shortcut in mind map (fixes #387)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Sep 3, 2024
1 parent 15a041a commit 3a87f8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/public/app/widgets/type_widgets/mind_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ export default class MindMapWidget extends TypeWidget {
doRender() {
this.$widget = $(TPL);
this.$content = this.$widget.find(".mind-map-container");
this.$content.on("keydown", (e) => {
/*
* Some global shortcuts interfere with the default shortcuts of the mind map,
* as defined here: https://mind-elixir.com/docs/guides/shortcuts
*/
if (e.key === "F1") {
e.stopPropagation();
}
});

super.doRender();
}
Expand Down

0 comments on commit 3a87f8b

Please sign in to comment.