mirror of
https://github.com/SuperBFG7/ympd
synced 2025-03-03 10:20:12 +00:00
Feat: add more shortcuts #58
This commit is contained in:
parent
5a2193cda4
commit
7fdd0fe560
@ -95,7 +95,7 @@
|
||||
<div class="card-body">
|
||||
<div class="album-cover featCoverimage" id="currentCover"></div>
|
||||
<div class="album-desc">
|
||||
<h2 id="currentTitle" data-href='{"cmd": "titleClick", "options": []}'></h2>
|
||||
<h2 id="currentTitle" data-href='{"cmd": "clickTitle", "options": []}'></h2>
|
||||
<div class="featTags" id="cardPlaybackTags"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,6 +13,7 @@ var keymap = {
|
||||
"a": {"cmd": "showAddToPlaylist", "options": ["stream"], "action": "Add Stream"},
|
||||
"t": {"cmd": "openModal", "options": ["modalSettings"], "action": "Open Settings"},
|
||||
"y": {"cmd": "openModal", "options": ["modalAbout"], "action": "Open About"},
|
||||
"i": {"cmd": "clickTitle", "options": [], "action": "Open Song Details"},
|
||||
"1": {"cmd": "appGoto", "options": ["Playback"], "action": "Goto Playback"},
|
||||
"2": {"cmd": "appGoto", "options": ["Queue"], "action": "Goto Queue"},
|
||||
"3": {"cmd": "appGoto", "options": ["Browse","Database"], "action": "Goto Browse Database"},
|
||||
|
@ -1925,7 +1925,7 @@ function replaceQueue(type, uri, name) {
|
||||
}
|
||||
}
|
||||
|
||||
function titleClick() {
|
||||
function clickTitle() {
|
||||
var uri = decodeURI(domCache.currentTitle.getAttribute('data-uri'));
|
||||
if (uri != '')
|
||||
songDetails(uri);
|
||||
|
Loading…
x
Reference in New Issue
Block a user