client: Fix zoom interfering with mind map (closes #387)

This commit is contained in:
Elian Doran 2024-09-09 23:59:25 +03:00
parent a3a5339048
commit d7ab99013c
No known key found for this signature in database

View File

@ -34,6 +34,12 @@ export default class MindMapWidget extends TypeWidget {
if (e.key === "F1") {
e.stopPropagation();
}
// Zoom controls
const isCtrl = e.ctrlKey && !e.altKey && !e.metaKey;
if (isCtrl && (e.key == "-" || e.key == "=" || e.key == "0")) {
e.stopPropagation();
}
});
super.doRender();