From ff254ce08daaf2ee92573719269539ef444c89fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 20 Oct 2014 11:33:07 -0400 Subject: [PATCH] Help: fix for help modal shortcut, and added missing shortcut, #952 --- src/app/partials/help_modal.html | 4 ++++ src/app/services/dashboard/dashboardKeyBindings.js | 2 +- src/app/services/keyboardManager.js | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/partials/help_modal.html b/src/app/partials/help_modal.html index 8fca3680fa0..866d44898eb 100644 --- a/src/app/partials/help_modal.html +++ b/src/app/partials/help_modal.html @@ -36,6 +36,10 @@ CTRL+R Refresh (Fetches new data and rerenders panels) + + CTRL+O + Enable/Disable shared graph crosshair + diff --git a/src/app/services/dashboard/dashboardKeyBindings.js b/src/app/services/dashboard/dashboardKeyBindings.js index c87b07db622..d5e0c1609c0 100644 --- a/src/app/services/dashboard/dashboardKeyBindings.js +++ b/src/app/services/dashboard/dashboardKeyBindings.js @@ -23,7 +23,7 @@ function(angular, $) { }); var helpModalScope = null; - keyboardManager.bind('shift+¿', function() { + keyboardManager.bind('shift+?', function() { if (helpModalScope) { return; } helpModalScope = $rootScope.$new(); diff --git a/src/app/services/keyboardManager.js b/src/app/services/keyboardManager.js index 72124fe76af..10d5db03f45 100644 --- a/src/app/services/keyboardManager.js +++ b/src/app/services/keyboardManager.js @@ -61,6 +61,7 @@ function (angular) { else if (e.which) { code = e.which; } + var character = String.fromCharCode(code).toLowerCase(); if (code === 188) { @@ -93,6 +94,9 @@ function (angular) { ",": "<", ".": ">", "/": "?", + "»": "?", + "«": "?", + "¿": "?", "\\": "|" }; // Special Keys - and their codes