Skip to content

Commit

Permalink
Merge pull request grafana#11264 from grafana/11102_duplicate_panel_s…
Browse files Browse the repository at this point in the history
…hortcut

Keyboard shortcut to duplicate panel
  • Loading branch information
daniellee authored Mar 20, 2018
2 parents 685a371 + 1094dc3 commit c53fda4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/app/core/services/keybindingSrv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ export class KeybindingSrv {
}
});

// duplicate panel
this.bind('p d', () => {
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
let panelIndex = dashboard.getPanelInfoById(dashboard.meta.focusPanelId).index;
dashboard.duplicatePanel(dashboard.panels[panelIndex]);
}
});

// share panel
this.bind('p s', () => {
if (dashboard.meta.focusPanelId) {
Expand Down

0 comments on commit c53fda4

Please sign in to comment.