diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index 6605b249176..52e1d09a018 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -9,6 +9,7 @@ import Mousetrap from 'mousetrap'; export class KeybindingSrv { helpModal: boolean; + bindings: any; /** @ngInject */ constructor(private $rootScope, private $modal, private $location, private contextSrv) { @@ -29,7 +30,7 @@ export class KeybindingSrv { this.bind("g a", this.openAlerting); this.bind("g p", this.goToProfile); this.bind("s s", this.openSearchStarred); - this.bind(['f'], this.openSearch); + this.bind('f', this.openSearch); } openSearchStarred() { @@ -102,6 +103,7 @@ export class KeybindingSrv { scope.appEvent('quick-snapshot'); }); + // edit panel this.bind('e', () => { if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) { this.$rootScope.appEvent('panel-change-view', { @@ -113,6 +115,7 @@ export class KeybindingSrv { } }); + // view panel this.bind('v', () => { if (dashboard.meta.focusPanelId) { this.$rootScope.appEvent('panel-change-view', { @@ -124,6 +127,7 @@ export class KeybindingSrv { } }); + // delete panel this.bind('d', () => { if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) { var panelInfo = dashboard.getPanelInfoById(dashboard.meta.focusPanelId); diff --git a/public/app/features/dashboard/row/add_panel.ts b/public/app/features/dashboard/row/add_panel.ts index f89da910612..3e2dc9e31d8 100644 --- a/public/app/features/dashboard/row/add_panel.ts +++ b/public/app/features/dashboard/row/add_panel.ts @@ -4,8 +4,6 @@ import _ from 'lodash'; import config from 'app/core/config'; import {coreModule, appEvents} from 'app/core/core'; -// import VirtualScroll from 'virtual-scroll'; -// console.log(VirtualScroll); export class AddPanelCtrl { row: any; diff --git a/public/app/features/dashboard/row/row.html b/public/app/features/dashboard/row/row.html index 69085e340f6..2eb167bbde0 100644 --- a/public/app/features/dashboard/row/row.html +++ b/public/app/features/dashboard/row/row.html @@ -8,9 +8,6 @@ {{ctrl.row.title | interpolateTemplateVars:this}} -