keyboard.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 some other normal buttons that might be useful
  19. "(?:Shift\\+)?(\\.|\\:|\\_)": "%1",
  20. // map Shift+Letter to action jump+letter
  21. "Shift\\+([A-Z])": "jump+%1",
  22. "Space": "play_pause",
  23. "P": "play_pause",
  24. "Ctrl\\+P": "pause",
  25. "X": "stop",
  26. "B": "back",
  27. "H": "home",
  28. "A": "cycle_audio",
  29. "Ctrl\\+A": "cycle_audio_back",
  30. "L": "cycle_subtitles",
  31. "Ctrl\\+L": "cycle_subtitles_back",
  32. "S": "toggle_subtitles",
  33. "Alt\\+A": "increase_audio_delay",
  34. "Alt\\+Shift\\+A": "decrease_audio_delay",
  35. "Alt\\+S": "increase_subtitles_delay",
  36. "Alt\\+Shift\\+S": "decrease_subtitles_delay",
  37. "PgUp": "seek_backward",
  38. "PgDown": "seek_forward",
  39. "Home": "step_backward",
  40. "End": "step_forward",
  41. // application shortcuts
  42. "Ctrl\\+F": "host:fullscreen",
  43. "Ctrl\\+Q": "host:close",
  44. "Ctrl\\+Shift\\+R": "host:reload",
  45. "Ctrl\\+Shift\\+D": "host:toggleDebug",
  46. // emulate some of of PHT's behaviour
  47. "I": "host:toggleDebug",
  48. "W": "toggle_watched",
  49. "\\\\": "host:fullscreen",
  50. // media keys from the FLIRC and on Linux keyboards
  51. "Toggle Media Play\\/Pause": "play_pause",
  52. // Microsoft Windows Media Center SE; Logitech Harmony device
  53. "Media Pause": "pause",
  54. "Media Play": "play_pause",
  55. "Media Stop": "stop",
  56. "Media Rewind": "seek_backward",
  57. "Media Fast Forward": "seek_forward",
  58. "Media Previous": "step_backward",
  59. "Media Next": "step_forward",
  60. "Back": "back",
  61. // Windows Media Center keyboard shortcuts
  62. "Alt\\+(Return|Enter)": "host:fullscreen",
  63. "Ctrl\\+Shift\\+P": "play_pause",
  64. "Ctrl\\+Shift\\+S": "stop",
  65. "Ctrl\\+Shift\\+B": "seek_backward",
  66. "Ctrl\\+Shift\\+G": "seek_forward",
  67. "Ctrl\\+B": "step_backward",
  68. "Ctrl\\+G": "step_forward",
  69. // volume
  70. "\\+": "increase_volume",
  71. "\\-": "decrease_volume",
  72. // debug command to crash the host. for testing
  73. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  74. }
  75. }