keyboard.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "Z": "host:cycle_setting video.aspect",
  54. // media keys from the FLIRC and on Linux keyboards
  55. "Toggle Media Play\\/Pause": "play_pause",
  56. // Microsoft Windows Media Center SE; Logitech Harmony device
  57. "Media Pause": "pause",
  58. "Media Play": "play_pause",
  59. "Media Stop": "stop",
  60. "Media Rewind": "seek_backward",
  61. "Media Fast Forward": "seek_forward",
  62. "Media Previous": "step_backward",
  63. "Media Next": "step_forward",
  64. "Back": "back",
  65. // Windows Media Center keyboard shortcuts
  66. "Alt\\+(Return|Enter)": "host:fullscreen",
  67. "Ctrl\\+Shift\\+P": "play_pause",
  68. "Ctrl\\+Shift\\+S": "stop",
  69. "Ctrl\\+Shift\\+B": "seek_backward",
  70. "Ctrl\\+Shift\\+G": "seek_forward",
  71. "Ctrl\\+B": "step_backward",
  72. "Ctrl\\+G": "step_forward",
  73. // volume
  74. "=": "increase_volume",
  75. "\\+": "increase_volume",
  76. "\\-": "decrease_volume",
  77. // debug command to crash the host. for testing
  78. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  79. }
  80. }