mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-08 19:48:07 +00:00
Preventing from default browser behaviour on zoom in/out
This commit is contained in:
parent
5558e17aaf
commit
0e2f462b73
@ -182,6 +182,18 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
this.mapChangeDetectorRef.detectChanges();
|
this.mapChangeDetectorRef.detectChanges();
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.addKeyboardListeners();
|
||||||
|
}
|
||||||
|
|
||||||
|
addKeyboardListeners() {
|
||||||
|
Mousetrap.bind('ctrl++', (event: Event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
|
Mousetrap.bind('ctrl+-', (event: Event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});;
|
||||||
}
|
}
|
||||||
|
|
||||||
onProjectLoad(project: Project) {
|
onProjectLoad(project: Project) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user