keyboard.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "Keyboard Generic",
  3. "idmatcher": "Keyboard.*",
  4. "mapping":
  5. {
  6. // standard navigation, we allow shift modifiers
  7. "(Shift\\+)?Left": "left",
  8. "(Shift\\+)?Right": "right",
  9. "(Shift\\+)?Up": "up",
  10. "(Shift\\+)?Down": "down",
  11. "(Return|Enter)": "enter",
  12. "(Esc|Backspace)": {
  13. "short": "back",
  14. "long": "exit"
  15. },
  16. // map X and Shift+X to X. This allows normal number input
  17. "(?:Shift\\+)?([0-9])": "%1",
  18. // map X and Shift+X to X for letters, space to space. This allows normal text input
  19. "(?:Shift\\+)?([A-Z])": "%1",
  20. "Space": ["space", "play_pause"],
  21. // map some other normal buttons that might be useful
  22. "(?:Shift\\+)?(\\.|\\:|\\_)": "%1",
  23. // map Shift+Letter to action jump+letter
  24. "Shift\\+([A-Z])": "jump+%1",
  25. "P": "play_pause",
  26. "Ctrl\\+P": "pause",
  27. "X": "stop",
  28. "B": "back",
  29. "H": "home",
  30. "A": "cycle_audio",
  31. "Ctrl\\+A": "cycle_audio_back",
  32. "L": "cycle_subtitles",
  33. "Ctrl\\+L": "cycle_subtitles_back",
  34. "S": "toggle_subtitles",
  35. "Alt\\+A": "increase_audio_delay",
  36. "Alt\\+Shift\\+A": "decrease_audio_delay",
  37. "Alt\\+S": "increase_subtitles_delay",
  38. "Alt\\+Shift\\+S": "decrease_subtitles_delay",
  39. "PgUp": "seek_backward",
  40. "PgDown": "seek_forward",
  41. "Home": "step_backward",
  42. "End": "step_forward",
  43. "Ctrl\\+F": "search",
  44. // application shortcuts
  45. "Ctrl\\+Shift\\+F": "host:fullscreen",
  46. "Ctrl\\+Q": "host:close",
  47. "Ctrl\\+Shift\\+R": "host:reload",
  48. "Ctrl\\+Shift\\+D": "host:toggleDebug",
  49. "Ctrl\\+Shift\\+A": "host:cycle_setting main.alwaysOnTop",
  50. // emulate some of of PHT's behaviour
  51. "I": "host:toggleDebug",
  52. "W": "toggle_watched",
  53. "\\\\": "host:fullscreen",
  54. "Z": "host:cycle_setting video.aspect",
  55. "T": "host:cycle_setting main.alwaysOnTop",
  56. // media keys from the FLIRC and on Linux keyboards
  57. "Toggle Media Play\\/Pause": "play_pause",
  58. // Microsoft Windows Media Center SE; Logitech Harmony device
  59. "Media Pause": "pause",
  60. "Media Play": "play_pause",
  61. "Media Stop": "stop",
  62. "Media Rewind": "seek_backward",
  63. "Media Fast Forward": "seek_forward",
  64. "Media Previous": "step_backward",
  65. "Media Next": "step_forward",
  66. "Back": "back",
  67. // Windows Media Center keyboard shortcuts
  68. "Alt\\+(Return|Enter)": "host:fullscreen",
  69. "Ctrl\\+Shift\\+P": "play_pause",
  70. "Ctrl\\+Shift\\+S": "stop",
  71. "Ctrl\\+Shift\\+B": "seek_backward",
  72. "Ctrl\\+Shift\\+G": "seek_forward",
  73. "Ctrl\\+B": "step_backward",
  74. "Ctrl\\+G": "step_forward",
  75. // volume
  76. "=": "increase_volume",
  77. "(Shift\\+)?\\+": "increase_volume",
  78. "\\-": "decrease_volume",
  79. // debug command to crash the host. for testing
  80. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  81. }
  82. }