keyboard.json 2.2 KB

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