Option to auto-hide menu toolbar on the left side

This commit is contained in:
piotrpekala7
2020-05-07 18:09:43 +02:00
parent 81b388a7fe
commit 82891b248f
3 changed files with 10 additions and 3 deletions

View File

@ -91,6 +91,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
public notificationsVisibility: boolean = false;
public layersVisibility: boolean = false;
public gridVisibility: boolean = false;
public toolbarVisibility: boolean = true;
tools = {
selection: true,
@ -294,6 +295,11 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
this.selectionManager.setSelected(allNodes.concat(allDrawings).concat(allLinks).concat(allSymbols));
});
Mousetrap.bind('ctrl+h', (event: Event) => {
event.preventDefault();
this.toolbarVisibility = !this.toolbarVisibility;
});
Mousetrap.bind('ctrl+shift+a', (event: Event) => {
event.preventDefault();
this.selectionManager.setSelected([]);