mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-20 15:40:29 +00:00
Option to auto-hide menu toolbar on the left side
This commit is contained in:
@ -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([]);
|
||||
|
Reference in New Issue
Block a user