Ver Fonte

Add keybindings +/- for increase and decrease volume

Tobias Hieta há 9 anos atrás
pai
commit
739be4db8d
1 ficheiros alterados com 5 adições e 1 exclusões
  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!"
   }