Commit ff254ce0 by Torkel Ödegaard

Help: fix for help modal shortcut, and added missing shortcut, #952

parent 8a80ea26
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
<td><span class="label label-info">CTRL+R</span></td> <td><span class="label label-info">CTRL+R</span></td>
<td>Refresh (Fetches new data and rerenders panels)</td> <td>Refresh (Fetches new data and rerenders panels)</td>
</tr> </tr>
<tr>
<td><span class="label label-info">CTRL+O</span></td>
<td>Enable/Disable shared graph crosshair</td>
</tr>
</table> </table>
</div> </div>
......
...@@ -23,7 +23,7 @@ function(angular, $) { ...@@ -23,7 +23,7 @@ function(angular, $) {
}); });
var helpModalScope = null; var helpModalScope = null;
keyboardManager.bind('shift+¿', function() { keyboardManager.bind('shift+?', function() {
if (helpModalScope) { return; } if (helpModalScope) { return; }
helpModalScope = $rootScope.$new(); helpModalScope = $rootScope.$new();
......
...@@ -61,6 +61,7 @@ function (angular) { ...@@ -61,6 +61,7 @@ function (angular) {
else if (e.which) { else if (e.which) {
code = e.which; code = e.which;
} }
var character = String.fromCharCode(code).toLowerCase(); var character = String.fromCharCode(code).toLowerCase();
if (code === 188) { if (code === 188) {
...@@ -93,6 +94,9 @@ function (angular) { ...@@ -93,6 +94,9 @@ function (angular) {
",": "<", ",": "<",
".": ">", ".": ">",
"/": "?", "/": "?",
"»": "?",
"«": "?",
"¿": "?",
"\\": "|" "\\": "|"
}; };
// Special Keys - and their codes // Special Keys - and their codes
......
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