keyboard.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "name": "Keyboard Generic",
  3. "idmatcher": "Keyboard.*",
  4. "mapping":
  5. {
  6. // standard navigation, we allow num and shift modifiers
  7. "(Num\\+|Shift\\+)?Left": "left",
  8. "(Num\\+|Shift\\+)?Right": "right",
  9. "(Num\\+|Shift\\+)?Up": "up",
  10. "(Num\\+|Shift\\+)?Down": "down",
  11. "(Num\\+)?(Return|Enter)": "enter",
  12. "Space": "space",
  13. "(Esc|Backspace)": "back",
  14. // map Num+X and Shift+X to X. This allows normal number input
  15. "(?:Num\\+|Shift\\+)?([0-9])": "%1",
  16. // map Shift+Letter to action jump+letter
  17. "Shift\\+([A-Z])": "jump+%1",
  18. "P": "play_pause",
  19. "Ctrl\\+P": "pause",
  20. "X": "stop",
  21. "B": "back",
  22. "H": "home",
  23. "A": "cycle_audio",
  24. "Ctrl\\+A": "cycle_audio_back",
  25. "L": "cycle_subtitles",
  26. "Ctrl\\+L": "cycle_subtitles_back",
  27. "S": "toggle_subtitles",
  28. "Alt\\+A": "increase_audio_delay",
  29. "Alt\\+Shift\\+A": "decrease_audio_delay",
  30. "Alt\\+S": "increase_subtitles_delay",
  31. "Alt\\+Shift\\+S": "decrease_subtitles_delay",
  32. // application shortcuts
  33. "Ctrl\\+F": "host:fullscreen",
  34. "Ctrl\\+Q": "host:close",
  35. "Ctrl\\+Shift\\+R": "host:reload",
  36. "Ctrl\\+Shift\\+D": "host:toggleDebug",
  37. // debug command to crash the host. for testing
  38. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  39. }
  40. }