added a key to jump to a song in the media library

This commit introduces a new key to bind, key_go_to_media_library. It
will switch to the media library and select the song under the cursor.
This commit is contained in:
Frank Blendinger
2009-12-17 22:01:00 +01:00
parent 0d05a550c2
commit a5882ee27f
7 changed files with 105 additions and 0 deletions

View File

@@ -1545,6 +1545,12 @@ int main(int argc, char *argv[])
if (s)
myBrowser->LocateSong(*s);
}
else if (Keypressed(input, Key.GoToMediaLibrary))
{
Song *s = myScreen->CurrentSong();
if (s)
myLibrary->LocateSong(*s);
}
else if (Keypressed(input, Key.GoToPosition))
{
if (!Mpd.GetTotalTime())