|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
export class FramingService { |
|
|
|
|
constructor (sidePanel, verticalIcon, mainView, resizeFeature) { |
|
|
|
|
constructor (sidePanel, verticalIcons, mainView, resizeFeature) { |
|
|
|
|
this.sidePanel = sidePanel |
|
|
|
|
this.verticalIcon = verticalIcon |
|
|
|
|
this.verticalIcons = verticalIcons |
|
|
|
|
this.mainPanel = mainView.getAppPanel() |
|
|
|
|
this.mainView = mainView |
|
|
|
|
this.resizeFeature = resizeFeature |
|
|
|
@ -18,16 +18,16 @@ export class FramingService { |
|
|
|
|
this.resizeFeature.showPanel() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.verticalIcon.select('filePanel') |
|
|
|
|
this.verticalIcons.select('filePanel') |
|
|
|
|
|
|
|
|
|
document.addEventListener('keypress', (e) => { |
|
|
|
|
if (e.shiftKey && e.ctrlKey) { |
|
|
|
|
if (e.code === 'KeyF') { // Ctrl+Shift+F
|
|
|
|
|
this.verticalIcon.select('filePanel') |
|
|
|
|
this.verticalIcons.select('filePanel') |
|
|
|
|
} else if (e.code === 'KeyA') { // Ctrl+Shift+A
|
|
|
|
|
this.verticalIcon.select('pluginManager') |
|
|
|
|
this.verticalIcons.select('pluginManager') |
|
|
|
|
} else if (e.code === 'KeyS') { // Ctrl+Shift+S
|
|
|
|
|
this.verticalIcon.select('settings') |
|
|
|
|
this.verticalIcons.select('settings') |
|
|
|
|
} |
|
|
|
|
e.preventDefault() |
|
|
|
|
} |
|
|
|
|