mirror of
https://github.com/grafana/grafana.git
synced 2025-09-28 00:43:38 +08:00
Keyboard Shortcuts: Sign in to enable them (#18271)
This commit is contained in:

committed by
Tobias Skarhed

parent
69589c28d6
commit
12f5d16c76
@ -39,13 +39,15 @@ export class KeybindingSrv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setupGlobal() {
|
setupGlobal() {
|
||||||
this.bind(['?', 'h'], this.showHelpModal);
|
if (this.contextSrv.user.isSignedIn) {
|
||||||
this.bind('g h', this.goToHome);
|
this.bind(['?', 'h'], this.showHelpModal);
|
||||||
this.bind('g a', this.openAlerting);
|
this.bind('g h', this.goToHome);
|
||||||
this.bind('g p', this.goToProfile);
|
this.bind('g a', this.openAlerting);
|
||||||
this.bind('s o', this.openSearch);
|
this.bind('g p', this.goToProfile);
|
||||||
this.bind('f', this.openSearch);
|
this.bind('s o', this.openSearch);
|
||||||
this.bindGlobal('esc', this.exit);
|
this.bind('f', this.openSearch);
|
||||||
|
this.bindGlobal('esc', this.exit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
openSearch() {
|
openSearch() {
|
||||||
|
Reference in New Issue
Block a user