keyboard.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. // also use I for debug emulating old PHT behaviour
  44. "I": "host:toggleDebug",
  45. // media keys from the FLIRC and on Linux keyboards
  46. "Toggle Media Play\\/Pause": "play_pause",
  47. // Microsoft Windows Media Center SE; Logitech Harmony device
  48. "Media Pause": "pause",
  49. "Media Play": "play_pause",
  50. "Media Stop": "stop",
  51. "Media Rewind": "seek_backward",
  52. "Media Fast Forward": "seek_forward",
  53. "Media Previous": "step_backward",
  54. "Media Next": "step_forward",
  55. "Back": "back",
  56. // Windows Media Center keyboard shortcuts
  57. "Alt\\+(Return|Enter)": "host:fullscreen",
  58. "Ctrl\\+P": "pause",
  59. "Ctrl\\+Shift\\+P": "play_pause",
  60. "Ctrl\\+Shift\\+S": "stop",
  61. "Ctrl\\+Shift\\+B": "seek_backward",
  62. "Ctrl\\+Shift\\+G": "seek_forward",
  63. "Ctrl\\+B": "step_backward",
  64. "Ctrl\\+G": "step_forward",
  65. // debug command to crash the host. for testing
  66. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  67. }
  68. }