Commit 12f5d16c by Eric Leijonmarck Committed by Tobias Skarhed

Keyboard Shortcuts: Sign in to enable them (#18271)

parent 69589c28
...@@ -39,6 +39,7 @@ export class KeybindingSrv { ...@@ -39,6 +39,7 @@ export class KeybindingSrv {
} }
setupGlobal() { setupGlobal() {
if (this.contextSrv.user.isSignedIn) {
this.bind(['?', 'h'], this.showHelpModal); this.bind(['?', 'h'], this.showHelpModal);
this.bind('g h', this.goToHome); this.bind('g h', this.goToHome);
this.bind('g a', this.openAlerting); this.bind('g a', this.openAlerting);
...@@ -47,6 +48,7 @@ export class KeybindingSrv { ...@@ -47,6 +48,7 @@ export class KeybindingSrv {
this.bind('f', this.openSearch); this.bind('f', this.openSearch);
this.bindGlobal('esc', this.exit); this.bindGlobal('esc', this.exit);
} }
}
openSearch() { openSearch() {
appEvents.emit('show-dash-search'); appEvents.emit('show-dash-search');
......
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