keyboard.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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": "exitDialog"
  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. This allows normal text input
  19. "(?:Shift\\+)?([A-Z])": "%1",
  20. // map some other normal buttons that might be useful
  21. "(?:Shift\\+)?(\\.|\\:|\\_)": "%1",
  22. // map Shift+Letter to action jump+letter
  23. "Shift\\+([A-Z])": "jump+%1",
  24. "Space": "play_pause",
  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. // emulate some of of PHT's behaviour
  50. "I": "host:toggleDebug",
  51. "W": "toggle_watched",
  52. "\\\\": "host:fullscreen",
  53. // media keys from the FLIRC and on Linux keyboards
  54. "Toggle Media Play\\/Pause": "play_pause",
  55. // Microsoft Windows Media Center SE; Logitech Harmony device
  56. "Media Pause": "pause",
  57. "Media Play": "play_pause",
  58. "Media Stop": "stop",
  59. "Media Rewind": "seek_backward",
  60. "Media Fast Forward": "seek_forward",
  61. "Media Previous": "step_backward",
  62. "Media Next": "step_forward",
  63. "Back": "back",
  64. // Windows Media Center keyboard shortcuts
  65. "Alt\\+(Return|Enter)": "host:fullscreen",
  66. "Ctrl\\+Shift\\+P": "play_pause",
  67. "Ctrl\\+Shift\\+S": "stop",
  68. "Ctrl\\+Shift\\+B": "seek_backward",
  69. "Ctrl\\+Shift\\+G": "seek_forward",
  70. "Ctrl\\+B": "step_backward",
  71. "Ctrl\\+G": "step_forward",
  72. // volume
  73. "=": "increase_volume",
  74. "\\+": "increase_volume",
  75. "\\-": "decrease_volume",
  76. // debug command to crash the host. for testing
  77. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  78. }
  79. }