mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: esc key now closes panel edit/view mode as usual, fixes #10945
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user