diff --git a/client/src/app/App.js b/client/src/app/App.js index 42e8ce1c93..85636b9f96 100644 --- a/client/src/app/App.js +++ b/client/src/app/App.js @@ -1946,6 +1946,11 @@ export class App extends PureComponent { return this.emitWithTab(type, activeTab, payload); } + if (action === 'openBottomPanel') { + const { panel } = this.state.layout; + return panel.open ? this.closePanel() : this.openPanel(panel.tab); + } + const tab = this.tabRef.current; return tab.triggerAction(action, options); diff --git a/client/src/app/tabs/bpmn/BpmnEditor.js b/client/src/app/tabs/bpmn/BpmnEditor.js index 05ec7565ac..1e5e513392 100644 --- a/client/src/app/tabs/bpmn/BpmnEditor.js +++ b/client/src/app/tabs/bpmn/BpmnEditor.js @@ -466,7 +466,8 @@ export class BpmnEditor extends CachedComponent { setColor: !!selectionLength, spaceTool: !inputActive, undo: commandStack.canUndo(), - zoom: true + zoom: true, + bottomPanel: true }; // ensure backwards compatibility diff --git a/client/src/app/tabs/bpmn/getBpmnWindowMenu.js b/client/src/app/tabs/bpmn/getBpmnWindowMenu.js index 7c6c4d364b..165911ba5a 100644 --- a/client/src/app/tabs/bpmn/getBpmnWindowMenu.js +++ b/client/src/app/tabs/bpmn/getBpmnWindowMenu.js @@ -11,7 +11,8 @@ export default function getBpmnWindowMenu(state) { return [ ...getZoomEntries(state), - ...getPropertiesPanelEntries(state) + ...getPropertiesPanelEntries(state), + ...getBottomPanelEntries() ]; } @@ -51,3 +52,12 @@ function getPropertiesPanelEntries({ propertiesPanel }) { action: 'resetProperties' } ] : []; } + +function getBottomPanelEntries() { + return [ { + label: 'Toggle Bottom Panel', + accelerator: 'CommandOrControl+B', + action: 'openBottomPanel' + } + ]; +} diff --git a/client/src/app/tabs/cloud-bpmn/BpmnEditor.js b/client/src/app/tabs/cloud-bpmn/BpmnEditor.js index 9cab0ce7ed..bdc1b4267b 100644 --- a/client/src/app/tabs/cloud-bpmn/BpmnEditor.js +++ b/client/src/app/tabs/cloud-bpmn/BpmnEditor.js @@ -432,7 +432,7 @@ export class BpmnEditor extends CachedComponent { setColor: !!selectionLength, spaceTool: !inputActive, undo: commandStack.canUndo(), - zoom: true + zoom: true, }; // ensure backwards compatibility diff --git a/client/src/app/tabs/dmn/getDmnWindowMenu.js b/client/src/app/tabs/dmn/getDmnWindowMenu.js index ac15c03bd7..3b49677ca3 100644 --- a/client/src/app/tabs/dmn/getDmnWindowMenu.js +++ b/client/src/app/tabs/dmn/getDmnWindowMenu.js @@ -12,7 +12,8 @@ export default function getBpmnWindowMenu(state) { return [ ...getZoomEntries(state), ...getPropertiesPanelEntries(state), - ...getOverviewEntries(state) + ...getOverviewEntries(state), + ...getBottomPanelEntries() ]; } @@ -63,4 +64,13 @@ function getOverviewEntries({ overview }) { accelerator: 'CommandOrControl+Shift+P', action: 'resetOverview' } ] : []; +} + +function getBottomPanelEntries() { + return [ { + label: 'Toggle Bottom Panel', + accelerator: 'CommandOrControl+B', + action: 'openBottomPanel' + } + ]; } \ No newline at end of file