client: Fix F1 shortcut in mind map (fixes #387)

This commit is contained in:
Elian Doran 2024-09-03 20:57:30 +03:00
parent 15a041a195
commit 3a87f8bc31
No known key found for this signature in database

View File

@ -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();
}