Browse Source

fix: esc key now closes panel edit/view mode as usual, fixes #10945

Torkel Ödegaard 8 years ago
parent
commit
497132c441
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/services/keybindingSrv.ts

+ 1 - 1
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;
     }