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