1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-18 19:34:48 +00:00
ympd/htdocs/js/keymap.js
2018-11-15 21:56:36 +00:00

31 lines
2.4 KiB
JavaScript

var keymap = {
"ArrowLeft": {"cmd": "clickPrev", "options": [], "desc": "Previous Song", "key": "keyboard_arrow_left"},
"ArrowRight": {"cmd": "clickNext", "options": [], "desc": "Next Song", "key": "keyboard_arrow_right"},
" ": {"cmd": "clickPlay", "options": [], "desc": "Toggle Play / Pause", "key": "space_bar"},
"s": {"cmd": "clickStop", "options": [], "desc": "Stop Playing"},
"-": {"cmd": "chVolume", "options": [-5], "desc": "Volume Down"},
"+": {"cmd": "chVolume", "options": [5], "desc": "Volume Up"},
"c": {"cmd": "MPD_API_QUEUE_CLEAR", "options": [], "desc": "Clear Queue"},
"u": {"cmd": "updateDB", "options": [], "desc": "Update Database"},
"r": {"cmd": "rescanDB", "options": [], "desc": "Rescan Database"},
"l": {"cmd": "openLocalPlayer", "options": [], "desc": "Open Local Player", "req": "featLocalplayer"},
"p": {"cmd": "updateSmartPlaylists", "options": [], "desc": "Update Smart Playlists", "req": "featSmartpls"},
"a": {"cmd": "showAddToPlaylist", "options": ["stream"], "desc": "Add Stream"},
"t": {"cmd": "openModal", "options": ["modalSettings"], "desc": "Open Settings"},
"y": {"cmd": "openModal", "options": ["modalAbout"], "desc": "Open About"},
"i": {"cmd": "clickTitle", "options": [], "desc": "Open Song Details"},
"1": {"cmd": "appGoto", "options": ["Playback"], "desc": "Goto Playback"},
"2": {"cmd": "appGoto", "options": ["Queue","Current"], "desc": "Goto Queue"},
"3": {"cmd": "appGoto", "options": ["Queue","LastPlayed"], "desc": "Goto Last Played"},
"4": {"cmd": "appGoto", "options": ["Browse","Database"], "desc": "Goto Browse Database", "req": "featTags"},
"5": {"cmd": "appGoto", "options": ["Browse","Playlists"], "desc": "Goto Browse Playlists", "req": "featPlaylists"},
"6": {"cmd": "appGoto", "options": ["Browse","Filesystem"], "desc": "Goto Browse Filesystem"},
"7": {"cmd": "appGoto", "options": ["Search"], "desc": "Goto Search"},
"m": {"cmd": "openDropdown", "options": ["dropdownMainMenu"], "desc": "Open Main Menu"},
"v": {"cmd": "openDropdown", "options": ["dropdownVolumeMenu"], "desc": "Open Volume Menu"},
"S": {"cmd": "MPD_API_QUEUE_SHUFFLE", "options": [], "desc": "Shuffle Queue"},
"C": {"cmd": "MPD_API_QUEUE_CROP", "options": [], "desc": "Crop Queue"},
"?": {"cmd": "openModal", "options": ["modalHelp"], "desc": "Open Help"},
"/": {"cmd": "focusSearch", "options": [], "desc": "Focus Search"}
}