diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index ce3657a4299..6f7a48f61d5 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -73,7 +73,7 @@ export class KeybindingSrv { appEvents.emit('hide-modal'); if (!this.modalOpen) { - appEvents.emit('panel-change-view', { fullscreen: false, edit: false }); + this.$rootScope.appEvent('panel-change-view', { fullscreen: false, edit: false }); } else { this.modalOpen = false; }