.018 added media keyboard bindings from @itchy

This commit is contained in:
Trevor Squillario 2012-01-09 10:59:20 -05:00
parent 758825fb8f
commit b7fa3fc05a
2 changed files with 6 additions and 5 deletions

5
README
View file

@ -14,9 +14,10 @@ External Subsonic Music Player
10/13/2011 .012 added Current Playlist, fixed some bugs
10/14/2011 .013 moved auto playlists, album display tweaks
10/14/2011 .014 multiple api call issue fix
11/15/2011 .015 fixed search issue, added last.fm support from smrq
11/15/2011 .015 fixed search issue, added last.fm support from @smrq
11/22/2011 .016 single artist bug fix, added API error notification
1/5/2011 .017 added FancyBox to CoverArt, improved current playlist functions
1/5/2011 .017 added FancyBox to CoverArt, improved current playlist functions
1/9/2011 .018 added media keyboard button bindings from @itchy
TO DO: (In no particular order...)
- Jukebox Control

View file

@ -77,17 +77,17 @@
var key = findKeyForCode(unicode);
var el = '#index_' + key.toUpperCase();
$('#Artists').stop().scrollTo(el);
} else if (unicode == 39) {
} else if (unicode == 39 || unicode == 176) {
var next = $('ul.songlist li.playing').next();
if (!next.length) next = $('ul.songlist li').first();
changeTrack(next);
// back arrow
} else if (unicode == 37) {
} else if (unicode == 37 || unicode == 177) {
var prev = $('ul.songlist li.playing').prev();
if (!prev.length) prev = $('ul.songlist li').last();
changeTrack(prev);
// spacebar
} else if (unicode == 32) {
} else if (unicode == 32 || unicode == 179 || unicode == 0179) {
playPauseSong();
}
}