keyboard.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. "Space": "space",
  13. "(Esc|Backspace)": "back",
  14. // map X and Shift+X to X. This allows normal number input
  15. "(?: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. "Space": "play_pause",
  21. "P": "play_pause",
  22. "Ctrl\\+P": "pause",
  23. "X": "stop",
  24. "B": "back",
  25. "H": "home",
  26. "A": "cycle_audio",
  27. "Ctrl\\+A": "cycle_audio_back",
  28. "L": "cycle_subtitles",
  29. "Ctrl\\+L": "cycle_subtitles_back",
  30. "S": "toggle_subtitles",
  31. "Alt\\+A": "increase_audio_delay",
  32. "Alt\\+Shift\\+A": "decrease_audio_delay",
  33. "Alt\\+S": "increase_subtitles_delay",
  34. "Alt\\+Shift\\+S": "decrease_subtitles_delay",
  35. "PgUp": "seek_backward",
  36. "PgDown": "seek_forward",
  37. "Home": "step_backward",
  38. "End": "step_forward",
  39. // application shortcuts
  40. "Ctrl\\+F": "host:fullscreen",
  41. "Ctrl\\+Q": "host:close",
  42. "Ctrl\\+Shift\\+R": "host:reload",
  43. "Ctrl\\+Shift\\+D": "host:toggleDebug",
  44. // emulate some of of PHT's behaviour
  45. "I": "host:toggleDebug",
  46. "\\\\": "host:fullscreen",
  47. // media keys from the FLIRC and on Linux keyboards
  48. "Toggle Media Play\\/Pause": "play_pause",
  49. // Microsoft Windows Media Center SE; Logitech Harmony device
  50. "Media Pause": "pause",
  51. "Media Play": "play_pause",
  52. "Media Stop": "stop",
  53. "Media Rewind": "seek_backward",
  54. "Media Fast Forward": "seek_forward",
  55. "Media Previous": "step_backward",
  56. "Media Next": "step_forward",
  57. "Back": "back",
  58. // Windows Media Center keyboard shortcuts
  59. "Alt\\+(Return|Enter)": "host:fullscreen",
  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. // volume
  67. "\\+": "increase_volume",
  68. "\\-": "decrease_volume",
  69. // debug command to crash the host. for testing
  70. "Ctrl\\+Alt\\+Shift\\+F1": "host:crash!"
  71. }
  72. }