From 85da4a169d70482a1ba816dd5d21e7dcff636728 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Fri, 2 Aug 2019 08:15:36 +0200 Subject: [PATCH] Keybindings: Disable on login url (#18331) --- public/app/core/services/keybindingSrv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index 502cceeff86..39bb4d86432 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -39,7 +39,7 @@ export class KeybindingSrv { } setupGlobal() { - if (this.contextSrv.user.isSignedIn) { + if (!(this.$location.path() === '/login')) { this.bind(['?', 'h'], this.showHelpModal); this.bind('g h', this.goToHome); this.bind('g a', this.openAlerting);