Merge pull request #13768 from davewat/feat-toggle-legend-shortcut

Feat - keyboard shortcut to toggle legend
This commit is contained in:
Torkel Ödegaard
2018-10-23 16:06:32 +02:00
committed by GitHub
3 changed files with 14 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ class GraphCtrl extends MetricsPanelCtrl {
onInitPanelActions(actions) {
actions.push({ text: 'Export CSV', click: 'ctrl.exportCsv()' });
actions.push({ text: 'Toggle legend', click: 'ctrl.toggleLegend()' });
actions.push({ text: 'Toggle legend', click: 'ctrl.toggleLegend()', shortcut: 'p l' });
}
issueQueries(datasource) {