make binding responsible for going to parent dir work in tag editor

This commit is contained in:
Andrzej Rybczak
2009-11-23 19:25:51 +01:00
parent 0dc076742f
commit 5aa1613cfb
2 changed files with 8 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ void Help::GetKeybindings()
*w << DisplayKeys(Key.Space) << "Select/deselect song (right column)\n";
*w << DisplayKeys(&Key.VolumeDown[0], 1) << "Previous column\n";
*w << DisplayKeys(&Key.VolumeUp[0], 1) << "Next column\n";
*w << DisplayKeys(Key.GoToParentDir) << "Go to parent directory (left column, directories view)\n";
# endif // HAVE_TAGLIB_H

View File

@@ -533,6 +533,13 @@ int main(int argc, char *argv[])
myBrowser->Main()->Reset();
myBrowser->EnterPressed();
}
# ifdef HAVE_TAGLIB_H
else if (myScreen->ActiveWindow() == myTagEditor->Dirs && myTagEditor->CurrentDir() != "/")
{
myTagEditor->Dirs->Reset();
myTagEditor->EnterPressed();
}
# endif // HAVE_TAGLIB_H
}
else if (Keypressed(input, Key.Enter))
{