Browse Source

Merge pull request #11371 from towolf/add-duplicate-panel-hints

Add hints for the 'pd' Duplicate Panel command from PR #11264
Carl Bergquist 7 years ago
parent
commit
cdf4664930

+ 1 - 0
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

+ 1 - 0
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': [

+ 1 - 0
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({