keyboard.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. "Ctrl\\+M": "host:minimize",
  45. "Meta\\+Down": "host:minimize",
  46. "Ctrl\\+W": "host:quit",
  47. // application shortcuts
  48. "Ctrl\\+Shift\\+F": "host:toggleWebMode",
  49. "Meta\\+Ctrl\\+F": "host:fullscreen",
  50. "Meta\\+Enter": "host:toggleWebMode",
  51. "F11": "host:fullscreen",
  52. "Shift\\+F11": "host:fullscreen",
  53. "Ctrl\\+Q": "host:close",
  54. "Ctrl\\+Shift\\+R": "host:reload",
  55. "Ctrl\\+Shift\\+D": "host:toggleDebug",
  56. "Ctrl\\+Shift\\+A": "host:cycle_setting main.alwaysOnTop",
  57. // emulate some of of PHT's behaviour
  58. "I": "host:toggleDebug",
  59. "W": "toggle_watched",
  60. "\\\\": "host:fullscreen",
  61. "Z": "host:cycle_setting video.aspect",
  62. "T": "host:cycle_setting main.alwaysOnTop",
  63. // media keys from the FLIRC and on Linux keyboards
  64. "Toggle Media Play\\/Pause": "play_pause",
  65. // Microsoft Windows Media Center SE; Logitech Harmony device
  66. "Media Pause": "pause",
  67. "Media Play": "play_pause",
  68. "Media Stop": "stop",
  69. "Media Rewind": "seek_backward",
  70. "Media Fast Forward": "seek_forward",
  71. "Media Previous": "step_backward",
  72. "Media Next": "step_forward",
  73. "Back": "back",
  74. // Windows Media Center keyboard shortcuts
  75. "Alt\\+(Return|Enter)": "host:fullscreen",
  76. "Ctrl\\+Shift\\+P": "play_pause",
  77. "Ctrl\\+Shift\\+S": "stop",
  78. "Ctrl\\+Shift\\+B": "seek_backward",
  79. "Ctrl\\+Shift\\+G": "seek_forward",
  80. "Ctrl\\+B": "step_backward",
  81. "Ctrl\\+G": "step_forward",
  82. // volume
  83. "=": "increase_volume",
  84. "(Shift\\+)?\\+": "increase_volume",
  85. "\\-": "decrease_volume",
  86. // debug command to crash the host. for testing
  87. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  88. }
  89. }