From 497132c44114486d99fcd9ae0bafe5af8160e613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 16 Feb 2018 15:52:42 +0100 Subject: [PATCH] fix: esc key now closes panel edit/view mode as usual, fixes #10945 --- public/app/core/services/keybindingSrv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }