keyboard.json 2.9 KB

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