Просмотр исходного кода

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

Torkel Ödegaard 11 лет назад
Родитель
Сommit
ff254ce08d

+ 4 - 0
src/app/partials/help_modal.html

@@ -36,6 +36,10 @@
 				<td><span class="label label-info">CTRL+R</span></td>
 				<td>Refresh (Fetches new data and rerenders panels)</td>
 			</tr>
+			<tr>
+				<td><span class="label label-info">CTRL+O</span></td>
+				<td>Enable/Disable shared graph crosshair</td>
+			</tr>
 		</table>
 	</div>
 

+ 1 - 1
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();

+ 4 - 0
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