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

This commit is contained in:
Torkel Ödegaard 2018-02-16 15:52:42 +01:00
parent 76cfa0bee3
commit 497132c441

View File

@ -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;
}