From 02f84e0c747cda9caae1137717fbeb1662be4c7b Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Sat, 24 Mar 2018 14:41:41 +0100 Subject: [PATCH 1/2] Add hints for the 'pd' Duplicate Panel command from PR #11264 --- docs/sources/features/shortcuts.md | 1 + public/app/core/components/help/help.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/sources/features/shortcuts.md b/docs/sources/features/shortcuts.md index cbcf3670c83..88c645eafdf 100644 --- a/docs/sources/features/shortcuts.md +++ b/docs/sources/features/shortcuts.md @@ -42,6 +42,7 @@ Hit `?` on your keyboard to open the shortcuts help modal. - `e` Toggle panel edit view - `v` Toggle panel fullscreen view - `p` `s` Open Panel Share Modal +- `p` `d` Duplicate Panel - `p` `r` Remove Panel ### Time Range diff --git a/public/app/core/components/help/help.ts b/public/app/core/components/help/help.ts index a544fc89854..a1d3c34ae5b 100644 --- a/public/app/core/components/help/help.ts +++ b/public/app/core/components/help/help.ts @@ -31,6 +31,7 @@ export class HelpCtrl { { keys: ['e'], description: 'Toggle panel edit view' }, { keys: ['v'], description: 'Toggle panel fullscreen view' }, { keys: ['p', 's'], description: 'Open Panel Share Modal' }, + { keys: ['p', 'd'], description: 'Duplicate Panel' }, { keys: ['p', 'r'], description: 'Remove Panel' }, ], 'Time Range': [ From 03b2561af29a7801977b213832d9ed33e83b1e3b Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Sat, 24 Mar 2018 14:49:06 +0100 Subject: [PATCH 2/2] Missed the 'p d' hint in the popup-menu --- public/app/features/panel/panel_ctrl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 429408ed803..f54877c2c37 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -190,6 +190,7 @@ export class PanelCtrl { text: 'Duplicate', click: 'ctrl.duplicate()', role: 'Editor', + shortcut: 'p d', }); menu.push({