From 674dff0e2ddbca7be219b8fe150298bf558a5c39 Mon Sep 17 00:00:00 2001 From: Seth Date: Thu, 13 Nov 2014 21:30:04 +0000 Subject: [PATCH] Issue #27 Patch 1 Almost forgot to add left and right arrow shortcuts. Added placeholders for jumping back/forth in playlist 10 songs for future implementation --- winamp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/winamp.js b/winamp.js index 1bf35d29..21ec6914 100755 --- a/winamp.js +++ b/winamp.js @@ -415,8 +415,12 @@ document.onkeyup = function(e){ case 104: winamp.setVolume((winamp.nodes.volume.value*1)+1); break; case 40: winamp.setVolume((winamp.nodes.volume.value*1)-1); break; case 98: winamp.setVolume((winamp.nodes.volume.value*1)-1); break; + case 37: winamp.media.audio.currentTime-=5; winamp.updateTime(); break; case 103: winamp.media.audio.currentTime-=5; winamp.updateTime(); break; + case 39: winamp.media.audio.currentTime+=5; winamp.updateTime(); break; case 105: winamp.media.audio.currentTime+=5; winamp.updateTime(); break; + case 97: /* Placeholder for jump backwards 10 songs in playlist or to start of */ break; + case 99: /* Placeholder for jump forwards 10 songs in playlist or to start of */ break; } }