Browse Source

Add keybindings +/- for increase and decrease volume

Tobias Hieta 9 years ago
parent
commit
739be4db8d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      resources/inputmaps/keyboard.json

+ 5 - 1
resources/inputmaps/keyboard.json

@@ -16,7 +16,7 @@
     "(?:Num\\+|Shift\\+)?([0-9])": "%1",
 
     // map some other normal buttons that might be useful
-    "(?:Shift\\+)?(\\.|\\-|\\:|\\_)": "%1",
+    "(?:Shift\\+)?(\\.|\\:|\\_)": "%1",
 
     // map Shift+Letter to action jump+letter
     "Shift\\+([A-Z])": "jump+%1",
@@ -73,6 +73,10 @@
     "Ctrl\\+B": "step_backward",
     "Ctrl\\+G": "step_forward",
 
+    // volume
+    "\\+": "increase_volume",
+    "\\-": "decrease_volume",
+
     // debug command to crash the host. for testing
     "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
   }