keyboard.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "name": "Keyboard Generic",
  3. "idmatcher": "Keyboard.*",
  4. "mapping":
  5. {
  6. // standard navigation, we allow num and shift modifiers
  7. "(Num\\+|Shift\\+)?Left": "left",
  8. "(Num\\+|Shift\\+)?Right": "right",
  9. "(Num\\+|Shift\\+)?Up": "up",
  10. "(Num\\+|Shift\\+)?Down": "down",
  11. "(Num\\+)?(Return|Enter)": "enter",
  12. "Space": "space",
  13. "(Esc|Backspace)": "back",
  14. // map Num+X and Shift+X to X. This allows normal number input
  15. "(?:Num\\+|Shift\\+)?([0-9])": "%1",
  16. // map some other normal buttons that might be useful
  17. "(?:Shift\\+)?(\\.|\\-|\\:|\\_)": "%1",
  18. // map Shift+Letter to action jump+letter
  19. "Shift\\+([A-Z])": "jump+%1",
  20. "P": "play_pause",
  21. "Ctrl\\+P": "pause",
  22. "X": "stop",
  23. "B": "back",
  24. "H": "home",
  25. "A": "cycle_audio",
  26. "Ctrl\\+A": "cycle_audio_back",
  27. "L": "cycle_subtitles",
  28. "Ctrl\\+L": "cycle_subtitles_back",
  29. "S": "toggle_subtitles",
  30. "Alt\\+A": "increase_audio_delay",
  31. "Alt\\+Shift\\+A": "decrease_audio_delay",
  32. "Alt\\+S": "increase_subtitles_delay",
  33. "Alt\\+Shift\\+S": "decrease_subtitles_delay",
  34. "PgUp": "seek_backward",
  35. "PgDown": "seek_forward",
  36. "Home": "step_backward",
  37. "End": "step_forward",
  38. // application shortcuts
  39. "Ctrl\\+F": "host:fullscreen",
  40. "Ctrl\\+Q": "host:close",
  41. "Ctrl\\+Shift\\+R": "host:reload",
  42. "Ctrl\\+Shift\\+D": "host:toggleDebug",
  43. // emulate some of of PHT's behaviour
  44. "I": "host:toggleDebug",
  45. "\\\\": "host:fullscreen",
  46. // media keys from the FLIRC and on Linux keyboards
  47. "Toggle Media Play\\/Pause": "play_pause",
  48. // Microsoft Windows Media Center SE; Logitech Harmony device
  49. "Media Pause": "pause",
  50. "Media Play": "play_pause",
  51. "Media Stop": "stop",
  52. "Media Rewind": "seek_backward",
  53. "Media Fast Forward": "seek_forward",
  54. "Media Previous": "step_backward",
  55. "Media Next": "step_forward",
  56. "Back": "back",
  57. // Windows Media Center keyboard shortcuts
  58. "Alt\\+(Return|Enter)": "host:fullscreen",
  59. "Ctrl\\+P": "pause",
  60. "Ctrl\\+Shift\\+P": "play_pause",
  61. "Ctrl\\+Shift\\+S": "stop",
  62. "Ctrl\\+Shift\\+B": "seek_backward",
  63. "Ctrl\\+Shift\\+G": "seek_forward",
  64. "Ctrl\\+B": "step_backward",
  65. "Ctrl\\+G": "step_forward",
  66. // debug command to crash the host. for testing
  67. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  68. }
  69. }