mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
client: Fix zoom interfering with mind map (closes #387)
This commit is contained in:
parent
a3a5339048
commit
d7ab99013c
@ -34,6 +34,12 @@ export default class MindMapWidget extends TypeWidget {
|
|||||||
if (e.key === "F1") {
|
if (e.key === "F1") {
|
||||||
e.stopPropagation();
|
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();
|
super.doRender();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user