Commit 497132c4 by Torkel Ödegaard

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

parent 76cfa0be
...@@ -73,7 +73,7 @@ export class KeybindingSrv { ...@@ -73,7 +73,7 @@ export class KeybindingSrv {
appEvents.emit('hide-modal'); appEvents.emit('hide-modal');
if (!this.modalOpen) { if (!this.modalOpen) {
appEvents.emit('panel-change-view', { fullscreen: false, edit: false }); this.$rootScope.appEvent('panel-change-view', { fullscreen: false, edit: false });
} else { } else {
this.modalOpen = false; this.modalOpen = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment