Skip to content

Commit

Permalink
Feat: add more shortcuts #58
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Nov 12, 2018
1 parent 5a2193c commit 7fdd0fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h2 class="dropdown-header text-light">Volume: <span id="volumePrct"></span></h2
<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>
Expand Down
1 change: 1 addition & 0 deletions htdocs/js/keymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion htdocs/js/mympd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fdd0fe

Please sign in to comment.